Reputation: 195
I have a room containing some furniture. I am using a directional light as a sun for casting shadows of windows and doors but the light penetrates through walls and falls on every object. Is there a way to avoid penetration of light through walls? I have read and figured out that lights in threejs doesn't follow physical laws but I am just curious.
Upvotes: 1
Views: 398
Reputation: 109
Sounds like light is scattering off of somethings. Could be bouncing off of things outside the room or things within the room/window frame. There are lights with barn doors for controlling the shape of the light beam. There are flags which allow you to selectively create shadows - similar to barn doors but not directly attached to the light. By limiting how much light is hitting things that reflect too much light you will have more control. If this is just a theatrical setting and not a real room, you could also modify the surfaces of the objects within the room that are facing the light source(s).
Upvotes: -2