Game dev
Saved & recent

Diffuse lighting

Related terms: Lambert, N dot L, ambient light

The matte part of shading. Light that hits a rough surface scatters evenly, so brightness depends only on the angle between the normal and the direction to the light. Facing the light is bright. Edge-on is dark. It is one dot product.

Ambient light is a small constant added everywhere so that unlit sides are not pure black. On its own it gives no sense of shape.

diffuse = max(dot(N, L), 0)

Further reading
LearnOpenGL: basic lighting
Ambient onlyAmbient + diffuse
Move the pointer or use the light controls.

View in the full Game dev collection