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

Common.MatDefs.Misc.ShowNormals.j3md Maven / Gradle / Ivy

The newest version!
MaterialDef Debug Normals {
    MaterialParameters {
        Int BoundDrawBuffer
        // For instancing
        Boolean UseInstancing
    }

    Technique {
        VertexShader   GLSL300 GLSL150 GLSL100:   Common/MatDefs/Misc/ShowNormals.vert
        FragmentShader GLSL300 GLSL150 GLSL100: Common/MatDefs/Misc/ShowNormals.frag

        WorldParameters {
            WorldViewProjectionMatrix
            ViewProjectionMatrix
            ViewMatrix
            ProjectionMatrix
        }

        Defines {
            BOUND_DRAW_BUFFER: BoundDrawBuffer
            INSTANCING : UseInstancing
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy