Browse Source

Clear the atomic counter used by the luminance pyramid pass. This fixes auto-exposure being broken and causing a black screen on some platforms (Xbox, OpenGL).

mac-autoexp
Nico de Poel 3 years ago
parent
commit
53e8164f0e
  1. 4
      Assets/Scripts/Core/Fsr2Context.cs

4
Assets/Scripts/Core/Fsr2Context.cs

@ -210,6 +210,10 @@ namespace FidelityFX
commandBuffer.ClearRenderTarget(false, true, new Color(-1f, 1e8f, 0f, 0f));
}
// Reset atomic counter to 0
commandBuffer.SetRenderTarget(Fsr2ShaderIDs.UavSpdAtomicCount);
commandBuffer.ClearRenderTarget(false, true, Color.clear);
// Auto exposure
SetupSpdConstants(dispatchParams, out var dispatchThreadGroupCount);

Loading…
Cancel
Save