From 3dff8b87c620d24c7813a0a72a98b262625e8399 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 22 Jan 2023 17:34:14 -0500 Subject: [PATCH] spelling: branch Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/2.lighting/5.3.light_casters_spot/5.3.light_casters.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;