Skip to content

neph1/SsrFilter

Repository files navigation

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

About

Stand alone SSR filter for jMonkeyEngine3

Resources

License

Stars

Watchers

Forks

Packages

No packages published