Hi All, There is a light on the wall in the room. It should be dark outside . Do I need to turn on shadows ?
Or did I miss any attributes ?
https://playground.babylonjs.com/#4GBWI5#1402
1 Like
Yes, you should setup a shadow generator. However, it will only work with a directional, spot or point light.
2 Likes
Or you could split the meshes and rely on the includeOnlyMeshes and such to ensure no light leaking.
3 Likes
Thanks. Both the following two geniuses’ replies will solve the problem