From 65d5f4ae18a507ef0509f1fa370307c257188811 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Thu, 27 Jul 2017 22:31:57 +0200 Subject: [PATCH] - Fix normal normalize --- wadsrc/static/shaders/glsl/main.vp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/shaders/glsl/main.vp b/wadsrc/static/shaders/glsl/main.vp index 9901fba3f..a6055c2b5 100644 --- a/wadsrc/static/shaders/glsl/main.vp +++ b/wadsrc/static/shaders/glsl/main.vp @@ -62,7 +62,7 @@ void main() gl_ClipDistance[4] = worldcoord.y + ((uSplitBottomPlane.w + uSplitBottomPlane.x * worldcoord.x + uSplitBottomPlane.y * worldcoord.z) * uSplitBottomPlane.z); } - vWorldNormal = NormalModelMatrix * normalize(aNormal); + vWorldNormal = NormalModelMatrix * vec4(normalize(aNormal.xyz), 1.0); vEyeNormal = NormalViewMatrix * vWorldNormal; #endif