From 06b23ec6caa3d7b36b9efb5fb502fe2d2a30ad4a Mon Sep 17 00:00:00 2001 From: b00nation <25694121+b00nation@users.noreply.github.com> Date: Sat, 19 Aug 2017 23:34:44 +0200 Subject: [PATCH] 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. --- .../src/main/resources/Common/MatDefs/Light/PBRLighting.j3md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.j3md b/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.j3md index 375c71015..5595ad1e1 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.j3md +++ b/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.j3md @@ -118,6 +118,8 @@ MaterialDef PBR Lighting { WorldViewProjectionMatrix CameraPosition WorldMatrix + ViewProjectionMatrix + ViewMatrix } Defines {