Need Help Concerning Underwater and Lighting

I am making a game where cameras will both be under water and out of water but in structures that are underwater. One important part of this game is that the further down you go, the darker it will be. This will be true of the entire map so I was looking for a tutorial for how to change the intensity of a direction light at a certain distance, but I haven’t found anything on that or any other solutions. Another problem I face is with the structures. I don’t what the blue fog, which I want to use to give the illusion of being under water, to continue when you walk inside, but if you look out a window I want it where you will see the fog outside. Thank you for your time.

For light, could just add script that checks distance to player(or player depth from water surface?) and adjusts light brightness…

1 Like

Thanks Mgear, that will work perfect. :smile: