$ ./guess_the_languageGame Dev
Game Dev · medium · #265

Which lighting term is d?

float d = max(0.0, dot(normalize(n), L));
  1. Specular highlight power
  2. Lambert diffuse intensity
  3. Fresnel reflectance factor
  4. 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 ▸