Fixed Backface Shadows param for PBRLighting

native-compilation-test
Nehon 8 years ago
parent fd200ac2a0
commit c713a06146
  1. 1
      jme3-core/src/main/resources/Common/MatDefs/Light/Lighting.j3md
  2. 6
      jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.j3md

@ -281,6 +281,7 @@ MaterialDef Phong Lighting {
POINTLIGHT : LightViewProjectionMatrix5 POINTLIGHT : LightViewProjectionMatrix5
NUM_BONES : NumberOfBones NUM_BONES : NumberOfBones
INSTANCING : UseInstancing INSTANCING : UseInstancing
BACKFACE_SHADOWS: BackfaceShadows
} }
ForcedRenderState { ForcedRenderState {

@ -104,6 +104,8 @@ MaterialDef PBR Lighting {
//For Vertex Color //For Vertex Color
Boolean UseVertexColor Boolean UseVertexColor
Boolean BackfaceShadows : false
} }
Technique { Technique {
@ -170,7 +172,7 @@ MaterialDef PBR Lighting {
} }
Technique PostShadow15{ Technique PostShadow{
VertexShader GLSL150: Common/MatDefs/Shadow/PostShadow.vert VertexShader GLSL150: Common/MatDefs/Shadow/PostShadow.vert
FragmentShader GLSL150: Common/MatDefs/Shadow/PostShadow.frag FragmentShader GLSL150: Common/MatDefs/Shadow/PostShadow.frag
@ -193,6 +195,7 @@ MaterialDef PBR Lighting {
POINTLIGHT : LightViewProjectionMatrix5 POINTLIGHT : LightViewProjectionMatrix5
NUM_BONES : NumberOfBones NUM_BONES : NumberOfBones
INSTANCING : UseInstancing INSTANCING : UseInstancing
BACKFACE_SHADOWS: BackfaceShadows
} }
ForcedRenderState { ForcedRenderState {
@ -224,6 +227,7 @@ MaterialDef PBR Lighting {
POINTLIGHT : LightViewProjectionMatrix5 POINTLIGHT : LightViewProjectionMatrix5
NUM_BONES : NumberOfBones NUM_BONES : NumberOfBones
INSTANCING : UseInstancing INSTANCING : UseInstancing
BACKFACE_SHADOWS: BackfaceShadows
} }
ForcedRenderState { ForcedRenderState {

Loading…
Cancel
Save