- Home /
Question by
Pocketshotgun · Aug 12, 2015 at 02:03 AM ·
waterfogheight
How to change fog color based oh height?
I have a game the takes place 100% underwater and I want the fog to become darker the deeper the player goes. Does anyone know how I could do this?
The player moves around by looking in any direction and pressing w or s. Thanks for any help!
Comment
Answer by getyour411 · Aug 12, 2015 at 03:00 AM
Grab a reference to the RenderSettings.fogStuff and change as player's Y changes
Your answer
Follow this Question
Related Questions
Global fog in Unity 5 ignoring height setting 0 Answers
Unity 5: Water Shader and Fog Not Rendering 1 Answer
Unity 5 Global Fog height? 2 Answers
How do I make the waters edge visible under water? 1 Answer
under water fog 2 Answers