Which lighting term is d?
float d = max(0.0, dot(normalize(n), L));
- Specular highlight power
- Lambert diffuse intensity
- Fresnel reflectance factor
- Ambient occlusion amount
Lambert's cosine law: diffuse light scales with the cosine between the surface normal and the light direction, clamped at zero for faces turned away.
Play Game Dev ▸