Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.j3md
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,33 @@ MaterialDef PBR Lighting {

}

Technique PreNormalGlossPass {

VertexShader GLSL100 : Common/MatDefs/SSR/normal_gloss.vert
FragmentShader GLSL100 : Common/MatDefs/SSR/normal_gloss.frag

WorldParameters {
WorldViewProjectionMatrix
WorldViewMatrix
WorldMatrix
NormalMatrix
ViewProjectionMatrix
ViewMatrix
}

Defines {
NUM_BONES : NumberOfBones
INSTANCING : UseInstancing
NUM_MORPH_TARGETS: NumberOfMorphTargets
NUM_TARGETS_BUFFERS: NumberOfTargetsBuffers
NORMALMAP : NormalMap
ROUGHNESSMAP : RoughnessMap
SPECGLOSSPIPELINE : UseSpecGloss
GLOSSINESSMAP : GlossinessMap
}

}

Technique Glow {

VertexShader GLSL100 GLSL150: Common/MatDefs/Misc/Unshaded.vert
Expand Down
Loading