Skip to content

joliver82/SsrFilter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SsrFilter

Stand alone SSR filter for jMonkeyEngine3

Based on https://github.com/riccardobl/SimpleSSRShader

Essentially same as in this PR: jMonkeyEngine/jmonkeyengine#1144

I thought this might be an easier way for people to get the filter and improve it.

It's dependent on a PreNormalGloss pass defined in PBRLighting.j3md:

Technique PreNormalGlossPass {

    VertexShader GLSL100 :   MatDefs/SSR/normal_gloss.vert
    FragmentShader GLSL100 : 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
    }

}

I didn't want to include the whole modified PBRLighting due to possible conflicts(?).

Demo here:

https://youtu.be/YxgEYg1D06Y

About

Stand alone SSR filter for jMonkeyEngine3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 50.6%
  • GLSL 49.4%