gallium: add target-helpers/wrap_screen.c to C_SOURCES
[mesa/mesa-lb.git] / progs / glsl / CH11-toyball.vert
blobb7da3ac839ee8d3442abe2e6e2de1bf77eb12a75
1 //
2 // Fragment shader for procedurally generated toy ball
3 //
4 // Author: Bill Licea-Kane
5 //
6 // Copyright (c) 2002-2003 ATI Research 
7 //
8 // See ATI-License.txt for license information
9 //
11 varying vec4 ECposition;   // surface position in eye coordinates
12 varying vec4 ECballCenter; // ball center in eye coordinates
13 uniform vec4 BallCenter;   // ball center in modelling coordinates
15 void main()
16
17 //orig:    ECposition   = gl_ModelViewMatrix * gl_Vertex;
19     ECposition = gl_TextureMatrix[0] * gl_Vertex;
20     ECposition = gl_ModelViewMatrix * ECposition;
22     ECballCenter = gl_ModelViewMatrix * BallCenter;
23     gl_Position  = ftransform();