소스 검색

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

Rémy Bouquet 9 년 전
부모
커밋
b746c71441
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      jme3-effects/src/main/resources/Common/MatDefs/SSAO/normal.vert

+ 1 - 1
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;
 }