Fix missing code from 80de56f469

This commit is contained in:
Wojtek Figat
2025-09-09 23:21:10 +02:00
parent 8482f93a0f
commit 5e52bf6469

View File

@@ -884,7 +884,10 @@ bool GlobalSignDistanceFieldPass::Render(RenderContext& renderContext, GPUContex
for (const auto& e : cascade.Chunks)
{
if (e.Key.Layer != 0)
{
maxLayer = Math::Max(maxLayer, e.Key.Layer);
continue;
}
auto& chunk = e.Value;
data.ChunkCoord = e.Key.Coord * GLOBAL_SDF_RASTERIZE_CHUNK_SIZE;
cascade.NonEmptyChunks.Add(e.Key);