From c713a06146393afccb61d107f27c933703fe5386 Mon Sep 17 00:00:00 2001 From: Nehon Date: Sat, 14 Jan 2017 09:35:00 +0100 Subject: [PATCH] Fixed Backface Shadows param for PBRLighting --- .../src/main/resources/Common/MatDefs/Light/Lighting.j3md | 1 + .../main/resources/Common/MatDefs/Light/PBRLighting.j3md | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/jme3-core/src/main/resources/Common/MatDefs/Light/Lighting.j3md b/jme3-core/src/main/resources/Common/MatDefs/Light/Lighting.j3md index 606b3537a..39ff01cbb 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/Light/Lighting.j3md +++ b/jme3-core/src/main/resources/Common/MatDefs/Light/Lighting.j3md @@ -281,6 +281,7 @@ MaterialDef Phong Lighting { POINTLIGHT : LightViewProjectionMatrix5 NUM_BONES : NumberOfBones INSTANCING : UseInstancing + BACKFACE_SHADOWS: BackfaceShadows } ForcedRenderState { 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 864ff9877..84066dcb6 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.j3md +++ b/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.j3md @@ -104,6 +104,8 @@ MaterialDef PBR Lighting { //For Vertex Color Boolean UseVertexColor + + Boolean BackfaceShadows : false } Technique { @@ -170,7 +172,7 @@ MaterialDef PBR Lighting { } - Technique PostShadow15{ + Technique PostShadow{ VertexShader GLSL150: Common/MatDefs/Shadow/PostShadow.vert FragmentShader GLSL150: Common/MatDefs/Shadow/PostShadow.frag @@ -193,6 +195,7 @@ MaterialDef PBR Lighting { POINTLIGHT : LightViewProjectionMatrix5 NUM_BONES : NumberOfBones INSTANCING : UseInstancing + BACKFACE_SHADOWS: BackfaceShadows } ForcedRenderState { @@ -224,6 +227,7 @@ MaterialDef PBR Lighting { POINTLIGHT : LightViewProjectionMatrix5 NUM_BONES : NumberOfBones INSTANCING : UseInstancing + BACKFACE_SHADOWS: BackfaceShadows } ForcedRenderState {