source:
code/branches/tutorial/Tutorial/Media/materials/programs/StdQuad_vp.glsl
@
  41
        
        | Last change on this file since 41 was 25, checked in by nicolasc, 18 years ago | |
|---|---|
| File size: 165 bytes | |
| Line | |
|---|---|
| 1 | varying vec2 uv; | 
| 2 | |
| 3 | void main() | 
| 4 | { | 
| 5 | gl_Position = ftransform(); | 
| 6 | |
| 7 | vec2 inPos = sign(gl_Vertex.xy); | 
| 8 | |
| 9 | uv = (vec2(inPos.x, -inPos.y) + 1.0)/2.0; | 
| 10 | } | 
| 11 | 
Note: See TracBrowser
        for help on using the repository browser.
    


            






