- Home /
Shadow Distance for individual lights?
Hello, I plan on having lots and lots of lights that cast shadows but the problem is that it will run horribly unless I have some sort of shadow distance but another problem is I would like to keep the shadow distance of my directional light the same and have other lights have a shorter distance.
Answer by WhoRainZone1 · Aug 05, 2014 at 04:45 PM
You could check the distance for each light to your player and turn the shadows on/off by a threshold distance. Would involve some calculation, so you'd have to test if it isn't a performance sink, depending on the number of your lights.
Cheers, WRZ
Occlusion culling does this, but I would like to have the less important shadows have less shadow distance than the directional light with the actual fading. Edit: Occlusion culling actually disables the lights entirely, I guess I'll try this method.
Your answer
![](https://koobas.hobune.stream/wayback/20220613155859im_/https://answers.unity.com/themes/thub/images/avi.jpg)