|
|
|
@ -129,11 +129,10 @@ namespace AZ
|
|
|
|
|
|
|
|
|
|
|
|
// reset the relocation iterations on the grids if the TLAS was updated
|
|
|
|
// reset the relocation iterations on the grids if the TLAS was updated
|
|
|
|
uint32_t rayTracingDataRevision = rayTracingFeatureProcessor->GetRevision();
|
|
|
|
uint32_t rayTracingDataRevision = rayTracingFeatureProcessor->GetRevision();
|
|
|
|
for (auto& diffuseProbeGrid : diffuseProbeGridFeatureProcessor->GetVisibleRealTimeProbeGrids())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (rayTracingDataRevision != m_rayTracingDataRevision)
|
|
|
|
if (rayTracingDataRevision != m_rayTracingDataRevision)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// the TLAS changed, relocate probes
|
|
|
|
for (auto& diffuseProbeGrid : diffuseProbeGridFeatureProcessor->GetVisibleRealTimeProbeGrids())
|
|
|
|
|
|
|
|
{
|
|
|
|
diffuseProbeGrid->ResetRemainingRelocationIterations();
|
|
|
|
diffuseProbeGrid->ResetRemainingRelocationIterations();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|