Why is one side of my mesh not illuminated?

I am building a scene where a “house” building mesh can be viewed from different angles. I want each wall to be illuminated with their own DirectionalLight. For whatever reason, however, the right wall is not illuminated. I know it has something to do with conflicts between the left and right light sources, as when I disable the left light source the problem disappears.

I replicated my project here, the positions of the camera, building and light source are the same.

I added some helplines and disabled HemisphericLight. Does it look now better?

BuildingLights | Babylon.js Playground

2 Likes

There is a limit per material (for performance I guess): https://playground.babylonjs.com/#WCJAZH#13

See also: Babylon.js docs

2 Likes

This was the issue, thank you. Removing any light or increasing the limit solves it.

1 Like