From cea71238f1eae79598a640b7872572d468380c70 Mon Sep 17 00:00:00 2001 From: Stefan Dresselhaus Date: Tue, 20 May 2014 00:12:16 +0200 Subject: [PATCH] played a bit with shaders .. won't render. --- shaders/mapobjects/vertex.shader | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shaders/mapobjects/vertex.shader b/shaders/mapobjects/vertex.shader index d29a678..0d5b273 100644 --- a/shaders/mapobjects/vertex.shader +++ b/shaders/mapobjects/vertex.shader @@ -14,7 +14,6 @@ out vec3 vNormal; void main () { vPosition = Position; - gl_Position = vec4(Position, 1.0); + gl_Position = ProjectionMatrix * ViewMatrix * vec4(Position, 1); vNormal = Normal; } -