Add nearby probes search to fill cells with missing GI data

#1614
This commit is contained in:
Wojtek Figat
2024-06-17 18:25:11 +02:00
parent e3f0991805
commit 6e0dd2064a
3 changed files with 44 additions and 21 deletions

View File

@@ -426,7 +426,6 @@ bool DynamicDiffuseGlobalIlluminationPass::RenderInner(RenderContext& renderCont
// Shift the volume origin based on scroll offsets for each axis once it overflows
for (int32 axis = 0; axis < 3; axis++)
{
// different volume scroll that preserves the scroll offset delta relative to the probe count
const int32 probeCount = ddgiData.ProbeCounts.Raw[axis];
int32& scrollOffset = cascade.ProbeScrollOffsets.Raw[axis];
while (scrollOffset >= probeCount)