diff options
author | Zou Nan hai <nanhai.zou@intel.com> | 2007-06-21 10:22:28 +0800 |
---|---|---|
committer | Zou Nan hai <nanhai.zou@intel.com> | 2007-06-21 10:22:28 +0800 |
commit | d19d0596daf004b56d80f78fa1a329b43c2ebf94 (patch) | |
tree | 24a911efdfe23a8e4cbec85d519875d78eb64be6 /progs/glsl/CH11-toyball.vert.txt | |
parent | 58eac1bbf320b4104c3158aaeca4726f1a59daf9 (diff) | |
download | external_mesa3d-d19d0596daf004b56d80f78fa1a329b43c2ebf94.zip external_mesa3d-d19d0596daf004b56d80f78fa1a329b43c2ebf94.tar.gz external_mesa3d-d19d0596daf004b56d80f78fa1a329b43c2ebf94.tar.bz2 |
support branch and loop in pixel shader
most of the sample working with some small modification
Diffstat (limited to 'progs/glsl/CH11-toyball.vert.txt')
-rw-r--r-- | progs/glsl/CH11-toyball.vert.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/progs/glsl/CH11-toyball.vert.txt b/progs/glsl/CH11-toyball.vert.txt index b7da3ac..a3ee1b0 100644 --- a/progs/glsl/CH11-toyball.vert.txt +++ b/progs/glsl/CH11-toyball.vert.txt @@ -14,10 +14,11 @@ uniform vec4 BallCenter; // ball center in modelling coordinates void main() { -//orig: ECposition = gl_ModelViewMatrix * gl_Vertex; + ECposition = gl_ModelViewMatrix * gl_Vertex; - ECposition = gl_TextureMatrix[0] * gl_Vertex; - ECposition = gl_ModelViewMatrix * ECposition; +// ECposition = gl_TextureMatrix[0] * gl_Vertex; +// ECposition = gl_MultiTexCoord0 * gl_Vertex; +// ECposition = gl_ModelViewMatrix * ECposition; ECballCenter = gl_ModelViewMatrix * BallCenter; gl_Position = ftransform(); |