Light penetrating through meshes

帅比萌擦擦* 提交于 2019-12-25 07:36:47

问题


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.


回答1:


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).



来源:https://stackoverflow.com/questions/33709244/light-penetrating-through-meshes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!