diff --git a/src/2.lighting/5.3.light_casters_spot/5.3.light_casters.fs b/src/2.lighting/5.3.light_casters_spot/5.3.light_casters.fs index 5f22efe..3030183 100644 --- a/src/2.lighting/5.3.light_casters_spot/5.3.light_casters.fs +++ b/src/2.lighting/5.3.light_casters_spot/5.3.light_casters.fs @@ -57,7 +57,7 @@ void main() float distance = length(light.position - FragPos); float attenuation = 1.0 / (light.constant + light.linear * distance + light.quadratic * (distance * distance)); - // ambient *= attenuation; // remove attenuation from ambient, as otherwise at large distances the light would be darker inside than outside the spotlight due the ambient term in the else branche + // ambient *= attenuation; // remove attenuation from ambient, as otherwise at large distances the light would be darker inside than outside the spotlight due the ambient term in the else branch diffuse *= attenuation; specular *= attenuation;