summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/shaders')
-rw-r--r--gfx/gl/shaders/directionalLight.fs2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/shaders/directionalLight.fs b/gfx/gl/shaders/directionalLight.fs
index 5350bf3..04715ce 100644
--- a/gfx/gl/shaders/directionalLight.fs
+++ b/gfx/gl/shaders/directionalLight.fs
@@ -23,5 +23,5 @@ main()
discard;
}
const vec3 Normal = texture(gNormal, TexCoords).rgb;
- FragColor = dot(-lightDirection, Normal) * lightColour;
+ FragColor = max(dot(-lightDirection, Normal) * lightColour, 0);
}