Forum Discussion
HoldenTB
10 years agoExplorer
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. :)
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
- vrdavebOculus StaffThanks! I'll see if we can safely do this by default moving forward.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 months ago
- 6 months ago
- 9 days ago
- 3 months ago