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

Common.MatDefs.VR.Unshaded.j3md Maven / Gradle / Ivy

There is a newer version: 3.7.0-stable
Show newest version
MaterialDef Unshaded {

    MaterialParameters {
        Int BoundDrawBuffer
        Texture2D ColorMap
        Color Color (Color)

        // For VR instancing
        Matrix4 RightEyeViewProjectionMatrix
    }

    Technique {
        VertexShader    GLSL300 GLSL150:   Common/MatDefs/VR/Unshaded.vert
        FragmentShader  GLSL300 GLSL150: Common/MatDefs/VR/Unshaded.frag

        WorldParameters {
            WorldViewProjectionMatrix
            ViewProjectionMatrix // needed for VR instancing
            ViewMatrix
        }

        Defines {
            BOUND_DRAW_BUFFER: BoundDrawBuffer
            INSTANCING : RightEyeViewProjectionMatrix // For VR instancing
            HAS_COLORMAP : ColorMap
            HAS_COLOR : Color
        }
    }

    Technique {
        VertexShader   GLSL300 GLSL150 GLSL100:   Common/MatDefs/VR/Unshaded.vert
        FragmentShader GLSL300 GLSL150 GLSL100: Common/MatDefs/VR/Unshaded.frag

        WorldParameters {
            WorldViewProjectionMatrix
            ViewProjectionMatrix // needed for VR instancing
            ViewMatrix
        }

        Defines {
            BOUND_DRAW_BUFFER: BoundDrawBuffer
            INSTANCING : RightEyeViewProjectionMatrix // For VR instancing
            HAS_COLORMAP : ColorMap
            HAS_COLOR : Color
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy