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

Common.MatDefs.Hdr.LogLum.j3md Maven / Gradle / Ivy

The newest version!
MaterialDef Log Lum 2D {

    MaterialParameters {
        Texture2D Texture
        Vector2 BlockSize
        Vector2 PixelSize
        Float NumPixels
        Boolean DecodeLum
        Boolean EncodeLum
        Boolean Blocks
        Boolean ComputeMax
    }

    Technique {
        VertexShader GLSL100:   Common/MatDefs/Gui/Gui.vert
        FragmentShader GLSL100: Common/MatDefs/Hdr/LogLum.frag

        WorldParameters {
            WorldViewProjectionMatrix
        }

        Defines {
            TEXTURE
            ENCODE_LUM : EncodeLum
            DECODE_LUM : DecodeLum
            BLOCKS : Blocks
            COMPUTE_MAX : ComputeMax
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy