summaryrefslogtreecommitdiff
path: root/progs/vpglsl/nestedswizzle.glsl
blob: a3adb3dfeb2cf851f06ba8b7e5759fab30df0a16 (plain)
1
2
3
4
5
6
7
8
9

void main() {
   gl_Position = gl_Vertex;
   gl_FrontColor = gl_Color;
   if (gl_Position.x < 0.5) {
      gl_FrontColor.y = 1.0;
   }
   gl_FrontColor.xzw = vec3(0, 0, 1);
}