diff options
author | Brian <[email protected]> | 2007-02-25 17:24:40 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-02-25 17:24:40 -0700 |
commit | f68067e101d596e59b39f94fafc39483f1c71233 (patch) | |
tree | 191e33194e292544a73e1cebb57da692e4741cb4 /progs/glsl/CH11-toyball.vert.txt | |
parent | 9854a17f292193c9720cf25ab00818ecc210f911 (diff) |
add texture rotation
Diffstat (limited to 'progs/glsl/CH11-toyball.vert.txt')
-rw-r--r-- | progs/glsl/CH11-toyball.vert.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/progs/glsl/CH11-toyball.vert.txt b/progs/glsl/CH11-toyball.vert.txt index 1aa7e9cac23..b7da3ac839e 100644 --- a/progs/glsl/CH11-toyball.vert.txt +++ b/progs/glsl/CH11-toyball.vert.txt @@ -14,7 +14,11 @@ uniform vec4 BallCenter; // ball center in modelling coordinates void main() { - ECposition = gl_ModelViewMatrix * gl_Vertex; +//orig: ECposition = gl_ModelViewMatrix * gl_Vertex; + + ECposition = gl_TextureMatrix[0] * gl_Vertex; + ECposition = gl_ModelViewMatrix * ECposition; + ECballCenter = gl_ModelViewMatrix * BallCenter; gl_Position = ftransform(); } |