~ubuntu-branches/ubuntu/oneiric/mesa-demos/oneiric

« back to all changes in this revision

Viewing changes to src/vpglsl/if.glsl

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2010-09-27 16:18:27 UTC
  • Revision ID: james.westby@ubuntu.com-20100927161827-1yfgolc1oy9sjhi8
Tags: upstream-8.0.1
ImportĀ upstreamĀ versionĀ 8.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
void main() {
 
3
    gl_FrontColor = gl_Color;
 
4
    gl_Position = gl_Vertex;
 
5
    if (gl_Position.x < 0.5)
 
6
        gl_FrontColor = vec4(1.0, 0.0, 0.0, 1.0);
 
7
}