aboutsummaryrefslogtreecommitdiff
path: root/engine/src/niftygui/Common/MatDefs/Nifty/Nifty.frag
blob: 5e77548d126102e792d44c23bac05f904913e131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
uniform bool m_UseTex;
uniform sampler2D m_Texture;
uniform vec4 m_Color;

varying vec2 texCoord;
varying vec4 color;

void main() {
    vec4 texVal = texture2D(m_Texture, texCoord);
    texVal = m_UseTex ? texVal : vec4(1.0);
    gl_FragColor = texVal * color * m_Color;
}