- Home /
Spotlight Soft shadows not rendering when close to object.
In my scene, I have a drawer. In that drawer is a flashlight. For some reason, even though the drawer is set to cast shadows, and receive shadows, and also my spotlight is set to Soft shadows, and my lighting path is set to deffered, the light still passes through the drawer. I have an image of what it looks like here- https://i.gyazo.com/77d63444213f26a86b91ec4b2d9e5d49.png
example- https://i.gyazo.com/0b5493958954c2a00d691f5a45472d5e.png
I need my lighting set to deffered, otherwise the spotlight lights up the entire object, rather than the parts of the texture it is pointed at. Any fixes? Thanks
Answer by ChrisKurhan · Jan 11, 2018 at 01:59 AM
I had a similar issue. When I changed my light specifically to "Not Important" (instead of "Auto") it stopped going through objects it wasn't supposed to.
In Forward rendering this will probably cause an undesired effect (per vertex lighting), but in Deferred it should be fine since all lights get calculated on a per pixel basis. In my case I noticed no difference in quality.
didn't work and I still have the same issue :( thanks for helping though