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

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

There is a newer version: 3.7.0-stable
Show newest version
//#define FRAGMENT_SHADER
#import "Common/ShaderLib/GLSLCompat.glsllib"

uniform vec4 m_Color;
uniform sampler2D m_ColorMap;

varying vec2 texCoord1;

void main(){
    vec4 color = vec4(1.0);

    #ifdef HAS_COLORMAP
        color *= texture2D(m_ColorMap, texCoord1);     
    #endif

    #ifdef HAS_COLOR
        color *= m_Color;
    #endif

    gl_FragColor = color;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy