Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
HoldenTB's avatar
HoldenTB
Explorer
10 years ago

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. :)

1 Reply

Replies have been turned off for this discussion
  • Thanks! I'll see if we can safely do this by default moving forward.