From 1306ec5b753b408a530b9d1e58018dc3b3f87417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 19 Mar 2012 12:49:02 +0100 Subject: [PATCH] Micro-optimized Phong vertex shader. --- src/Shaders/PhongShader.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shaders/PhongShader.vert b/src/Shaders/PhongShader.vert index d02bd08fc..6fb1097e1 100644 --- a/src/Shaders/PhongShader.vert +++ b/src/Shaders/PhongShader.vert @@ -22,5 +22,5 @@ void main() { lightDirection = normalize(light.xyz - transformedVertex); /* Transform the vertex */ - gl_Position = projectionMatrix*transformationMatrix*vertex; + gl_Position = projectionMatrix*transformedVertex4; }