Skip to main content
Up and Coming
March 23, 2016

Screen Fades and Fog

We're doing screenfades using the Oculus/Unlit Transparent Color shader similar to the reference provided in the Oculus Utilities package, and noticed that our fade color wasn't always what we expected.

It turns out that the provided shader is affected by fog. I wouldn't expect that to be an issue most of the time, but in some parts of our game, we actually have our fog start set to a negative number to create a screen tint effect. This results in the screen fade material only fading to a tinted fog value, not the color we pass in.

Adding Fog {Mode Off} to the shader fixed the issue for us. Not sure if this is a bug or by design (I recognize our fog settings may not be common), but calling it out in case it was unintentional. :)
    This topic has been closed for replies.

    1 reply

    Inspiring
    March 23, 2016
    Thanks! I'll see if we can safely do this by default moving forward.