MeshLambertMaterial makes no distinction on source of shadow.

The Lambert shader does not distinguishing between light sources for creating shadows, thus any light that creates a shadow blocks all lights in that area.

Exactly like the old issue with Phong materials, which has been fixed:
#6693
“Shadows should be applied only to shadow casting light.”

Here’s a screenshot of the Lambert and Phong materials and their shadows from two light sources, red and green:
https://imgur.com/gallery/zyuaf

The code:
https://codepen.io/SarahC/pen/zPjbdK/?editors=0010

Three.js version

R88?
https://cdnjs.cloudflare.com/ajax/libs/three.js/88/three.min.js

Browser

Tested in Chrome only.

OS

Tested on Windows only.

Hardware Requirements (graphics card, VR Device, …)

Running on GTX970.

Author: Fantashit

1 thought on “MeshLambertMaterial makes no distinction on source of shadow.

Comments are closed.