All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Common.MatDefs.Shadow.BasicPostShadow.j3md Maven / Gradle / Ivy

The newest version!
MaterialDef Basic Post Shadow {

    MaterialParameters {
        Texture2D ShadowMap
        Matrix4 LightViewProjectionMatrix
    }

    Technique {
        VertexShader GLSL100:   Common/MatDefs/Shadow/BasicPostShadow.vert
        FragmentShader GLSL100: Common/MatDefs/Shadow/BasicPostShadow.frag

        WorldParameters {
            WorldViewProjectionMatrix
            WorldMatrix
        }

        Defines {
            NO_SHADOW2DPROJ
        }

        RenderState {
            Blend Modulate
            DepthWrite Off    
            PolyOffset -0.1 0
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy