Adjust DDGI quality and optimize

This commit is contained in:
Wojciech Figat
2022-06-17 14:32:07 +02:00
parent b8ff4ae2e0
commit 9f99d74e53
5 changed files with 35 additions and 26 deletions

View File

@@ -546,11 +546,8 @@ bool GlobalSignDistanceFieldPass::Render(RenderContext& renderContext, GPUContex
}
// Perform batched chunks rasterization
if (!anyDraw)
{
anyDraw = true;
context->ResetSR();
}
anyDraw = true;
context->ResetSR();
ModelsRasterizeData data;
data.CascadeCoordToPosMul = (Float3)cascadeBounds.GetSize() / (float)resolution;
data.CascadeCoordToPosAdd = (Float3)cascadeBounds.Minimum + cascadeVoxelSize * 0.5f;