- Home /
Question by
ImpOfThePerverse · Feb 23, 2019 at 01:53 AM ·
directional lightunderwaterfalloff
Directional light with fall off
I'm working on a game that's set underwater, and need to simulate the light attenuation that comes with depth. I'm currently using a script to interpolate fog, ambient light, and directional light colors and intensities with the depth of the camera, but that means that if you're at a shallow depth, a deep ocean bottom is illuminated like it's also at a shallow depth. Is there a way to make a directional light whose intensity falls off with the y position?
Comment
Your answer
Follow this Question
Related Questions
underwater fog script 1 Answer
Underwater effects for rivers 0 Answers
Audio falloff from movie stream 0 Answers
Directional light shadow distance on iOS 1 Answer
Directional light 2D 0 Answers