Improve probes relocation algorithm to reduce visual artifacts due to probes flickering

This commit is contained in:
Wojciech Figat
2022-05-27 11:44:39 +02:00
parent 48b3a34182
commit eb6050cf27
3 changed files with 15 additions and 10 deletions

View File

@@ -896,6 +896,7 @@ void GlobalSurfaceAtlasPass::RenderDebug(RenderContext& renderContext, GPUContex
Vector2 outputSizeTwoThird = outputSize * 0.666f;
GPUTexture* tempBuffer = renderContext.Buffers->RT2_FloatRGB;
context->Clear(tempBuffer->View(), Color::Black);
context->SetRenderTarget(tempBuffer->View());
// Full screen - direct light