From 93ac80d44fc9af5afcac9884543807189fc2b499 Mon Sep 17 00:00:00 2001 From: Daniel Johansson Date: Mon, 7 Mar 2016 16:33:57 +0000 Subject: [PATCH] Fixed an issue with SSAO normal.vert throwing an error when using instancing. --- jme3-effects/src/main/resources/Common/MatDefs/SSAO/normal.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-effects/src/main/resources/Common/MatDefs/SSAO/normal.vert b/jme3-effects/src/main/resources/Common/MatDefs/SSAO/normal.vert index 82a08f392..df48b1176 100644 --- a/jme3-effects/src/main/resources/Common/MatDefs/SSAO/normal.vert +++ b/jme3-effects/src/main/resources/Common/MatDefs/SSAO/normal.vert @@ -20,5 +20,5 @@ void main(void) Skinning_Compute(modelSpacePos,modelSpaceNormals); #endif normal = normalize(g_NormalMatrix * modelSpaceNormals); - gl_Position = g_WorldViewProjectionMatrix * modelSpacePos; + gl_Position = TransformWorldViewProjection(modelSpacePos); } \ No newline at end of file