MaterialDef Posterization {
 
    MaterialParameters {
        Int NumSamples
        Texture2D Texture;
        Int NumColors;
        Float Gamma;
        Float Strength;
    }
 
    Technique {
        VertexShader GLSL150:   Common/MatDefs/Post/Post15.vert
        FragmentShader GLSL150: Common/MatDefs/Post/Posterization15.frag
 
        WorldParameters {
        }
    }
 
    Technique {
        VertexShader GLSL100:   Common/MatDefs/Post/Post.vert
        FragmentShader GLSL100: Common/MatDefs/Post/Posterization.frag
 
        WorldParameters {   
        }
    }
}