فهرست منبع

Fixed: If Instancing is activated you only see shadows

When the pbr material was introduced someone forgot to keep the instancing in mind which uses :
            ViewProjectionMatrix
            ViewMatrix
I added these.
b00nation 8 سال پیش
والد
کامیت
06b23ec6ca
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.j3md

+ 2 - 0
jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.j3md

@@ -118,6 +118,8 @@ MaterialDef PBR Lighting {
             WorldViewProjectionMatrix
             CameraPosition
             WorldMatrix
+            ViewProjectionMatrix
+            ViewMatrix
         }
 
         Defines {