Python for data science python for data analysis python pandas python numpy great learning great learning 306 watching live now.
Unity light passing through walls.
That s why shadows exist.
You can simulate this in shaders or use raycasts to see if the light is behind a wall.
This solution works in other engines like unity and ue4.
By sydon thursday november 2 2017.
These options have obvious edge cases that can t be easily resolved.
In that case you ll need to be a bit more clever.
It s really just a shadow type setting that needs to be set right.
You have a point light source behind some walls.
Set the point light s baking property to mixed or baked then bake your lighting data using the lighting tab.
Create a unity primitive cube plane etc sized similarly to your wall remove its collider and in the mesh.
Although you have enclosed the light indirect light from the light source seems to seep through especially on the ceiling and the floor.
This solution works in other engines like unity and ue4.
Light passing through walls 1.
How to fix indirect lights seeping through walls.