From b746c71441b0b9846ec08bd00c32d4aee68de097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81my=20Bouquet?= Date: Fri, 4 Mar 2016 14:12:33 +0100 Subject: [PATCH] Used the instancing transformation method for the normal pass in SSAO as it was producing a crash when instancing was enabled. --- 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..00aa103ff 100644 --- a/jme3-effects/src/main/resources/Common/MatDefs/SSAO/normal.vert +++ b/jme3-effects/src/main/resources/Common/MatDefs/SSAO/normal.vert @@ -19,6 +19,6 @@ void main(void) #ifdef NUM_BONES Skinning_Compute(modelSpacePos,modelSpaceNormals); #endif - normal = normalize(g_NormalMatrix * modelSpaceNormals); + normal = normalize(TransformNormal(modelSpaceNormals)); gl_Position = g_WorldViewProjectionMatrix * modelSpacePos; } \ No newline at end of file