Browse Source

Clear auto-exposure texture using zeroes on Metal. Should fix black screen flashes on accumulation reset, when auto-exposure is enabled.

master
Nico de Poel 3 years ago
parent
commit
c65cab824e
  1. 2
      Assets/Scripts/Core/Fsr2Context.cs

2
Assets/Scripts/Core/Fsr2Context.cs

@ -204,7 +204,7 @@ namespace FidelityFX
// Auto exposure always used to track luma changes in locking logic
commandBuffer.SetRenderTarget(_resources.AutoExposure);
commandBuffer.ClearRenderTarget(false, true, new Color(-1f, 1e8f, 0f, 0f));
commandBuffer.ClearRenderTarget(false, true, SystemInfo.graphicsDeviceType == GraphicsDeviceType.Metal ? Color.clear : new Color(-1f, 1e8f, 0f, 0f));
// Reset atomic counter to 0
commandBuffer.SetRenderTarget(_resources.SpdAtomicCounter);

Loading…
Cancel
Save