#How to limit player vision distance (everything turns black after ~5 meters)

1 messages · Page 1 of 1 (latest)

winter dragon
#

I want the player to only be able to see about 5 meters around them, and everything beyond that distance should be completely black. I’m not sure what the best approach is (fog, shader, post-processing, or something else). Any help would be appreciated, thanks!

#

like this

cinder ether
#

make the scene pitch black, delete all the directional lights, skybox lights etc then simply use a small spot light with a given radius

#

attach the light to your player

#

how does your game look like rn

#

would be interesting to see

rugged dragon
cinder ether
#

and yeah as for the second part, the given game also uses some kind of pixelated shaders and some pp. fog would also be a good idea

pseudo pebble
#

No need to change lighting then, but it's an option