Used the instancing transformation method for the normal pass in SSAO as it was producing a crash when instancing was enabled.

This commit is contained in:
Rémy Bouquet 2016-03-04 14:12:33 +01:00
parent a22f6772e6
commit b746c71441

View File

@ -19,6 +19,6 @@ void main(void)
#ifdef NUM_BONES #ifdef NUM_BONES
Skinning_Compute(modelSpacePos,modelSpaceNormals); Skinning_Compute(modelSpacePos,modelSpaceNormals);
#endif #endif
normal = normalize(g_NormalMatrix * modelSpaceNormals); normal = normalize(TransformNormal(modelSpaceNormals));
gl_Position = g_WorldViewProjectionMatrix * modelSpacePos; gl_Position = g_WorldViewProjectionMatrix * modelSpacePos;
} }