summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-vs-if-bool.vert
blob: 1f15494c9363d3f3c84117f165d7eccef06ee3b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
uniform bool red;

void main()
{
	if (red)
		gl_FrontColor = vec4(1.0, 0.0, 0.0, 0.0);
	else
		gl_FrontColor = vec4(0.0, 1.0, 0.0, 0.0);
	gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}