source:
GTP/trunk/Lib/Illum/GPUObscurancesGT/src/projection.vert
@
930
Revision 930, 206 bytes checked in by igarcia, 19 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[930] | 1 | varying float cosine; |
2 | varying vec2 texCoord; | |
3 | ||
4 | void main() | |
5 | { | |
6 | gl_Position = ftransform(); | |
7 | texCoord = gl_MultiTexCoord0.st; | |
8 | ||
9 | cosine = (gl_ModelViewMatrixInverseTranspose * vec4(gl_Normal,1.0)).z; | |
10 | } |
Note: See TracBrowser
for help on using the repository browser.