Skip to content

Commit

Permalink
Traktor: Do not cull terrain patches in snapshot mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Dec 20, 2024
1 parent aaac36f commit c00693a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions code/Terrain/TerrainComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,15 @@ void TerrainComponent::setup(
}

// Update base color texture.
m_view[viewIndex].surfaceCache->setupBaseColor(
context.getRenderGraph(),
m_terrain,
-worldExtent * 0.5_simd,
worldExtent
);
if (!snapshot)
{
m_view[viewIndex].surfaceCache->setupBaseColor(
context.getRenderGraph(),
m_terrain,
-worldExtent * 0.5_simd,
worldExtent
);
}
}

void TerrainComponent::build(
Expand Down Expand Up @@ -447,7 +450,7 @@ void TerrainComponent::build(
}

// Cull draw buffer to HiZ target; only deferred renderer using HiZ culling.
if (worldRenderPass.getTechnique() == world::s_techniqueDeferredGBufferWrite)
if (!snapshot && worldRenderPass.getTechnique() == world::s_techniqueDeferredGBufferWrite)
{
const Vector2 viewSize = worldRenderView.getViewSize();

Expand Down

0 comments on commit c00693a

Please sign in to comment.