Lights

A DirectionalLight circles the scene like a low sun, aimed with lookAt(), and a PointLight orbits between the objects carrying a small glowing marker as its child. The Lambert shader below reads the light uniforms the renderer injects (ambientLightColor, directionalLight*, pointLight*) and sums max(dot(N, L), 0) per light.

← all examples