cancel
Showing results for 
Search instead for 
Did you mean: 

Screen Fades and Fog

HoldenTB
Explorer
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. 🙂
1 REPLY 1

vrdaveb
Oculus Staff
Thanks! I'll see if we can safely do this by default moving forward.