aboutsummaryrefslogtreecommitdiff
path: root/engine/src/core-data/Common/MatDefs/Gui/Gui.frag
blob: caa666c1b8fd0511f804e11f0a2d8619818227de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifdef TEXTURE
uniform sampler2D m_Texture;
varying vec2 texCoord;
#endif

varying vec4 color;

void main() {
    #ifdef TEXTURE
      vec4 texVal = texture2D(m_Texture, texCoord);
      gl_FragColor = texVal * color;
    #else
      gl_FragColor = color;
    #endif
}