Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.29 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.29 KB

SsrFilter

Stand alone SSR filter for jMonkeyEngine3

ssr

https://youtu.be/YxgEYg1D06Y

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

Gradle:

repositories {
		...
		maven { url 'https://jitpack.io' }
}
dependencies {
        implementation 'com.github.neph1:SsrFilter:Tag'
}

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(?).