summaryrefslogtreecommitdiff
path: root/graphics/asymptote/base/shaders/vertex.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/base/shaders/vertex.glsl')
-rw-r--r--graphics/asymptote/base/shaders/vertex.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/asymptote/base/shaders/vertex.glsl b/graphics/asymptote/base/shaders/vertex.glsl
index 9a54d3211c..4b2a54b989 100644
--- a/graphics/asymptote/base/shaders/vertex.glsl
+++ b/graphics/asymptote/base/shaders/vertex.glsl
@@ -34,7 +34,7 @@ void main()
#ifndef ORTHOGRAPHIC
ViewPosition=(viewMat*v).xyz;
#endif
- Normal=normal*normMat;
+ Normal=normalize(normal*normMat);
#endif
#ifdef COLOR