Skip to content

Commit c713a06

Browse files
committed
Fixed Backface Shadows param for PBRLighting
1 parent fd200ac commit c713a06

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

jme3-core/src/main/resources/Common/MatDefs/Light/Lighting.j3md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ MaterialDef Phong Lighting {
281281
POINTLIGHT : LightViewProjectionMatrix5
282282
NUM_BONES : NumberOfBones
283283
INSTANCING : UseInstancing
284+
BACKFACE_SHADOWS: BackfaceShadows
284285
}
285286

286287
ForcedRenderState {

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ MaterialDef PBR Lighting {
104104

105105
//For Vertex Color
106106
Boolean UseVertexColor
107+
108+
Boolean BackfaceShadows : false
107109
}
108110

109111
Technique {
@@ -170,7 +172,7 @@ MaterialDef PBR Lighting {
170172
}
171173

172174

173-
Technique PostShadow15{
175+
Technique PostShadow{
174176
VertexShader GLSL150: Common/MatDefs/Shadow/PostShadow.vert
175177
FragmentShader GLSL150: Common/MatDefs/Shadow/PostShadow.frag
176178

@@ -193,6 +195,7 @@ MaterialDef PBR Lighting {
193195
POINTLIGHT : LightViewProjectionMatrix5
194196
NUM_BONES : NumberOfBones
195197
INSTANCING : UseInstancing
198+
BACKFACE_SHADOWS: BackfaceShadows
196199
}
197200

198201
ForcedRenderState {
@@ -224,6 +227,7 @@ MaterialDef PBR Lighting {
224227
POINTLIGHT : LightViewProjectionMatrix5
225228
NUM_BONES : NumberOfBones
226229
INSTANCING : UseInstancing
230+
BACKFACE_SHADOWS: BackfaceShadows
227231
}
228232

229233
ForcedRenderState {

0 commit comments

Comments
 (0)