metasurf
annotate examples/volume/sdr/vert.glsl @ 7:246260d95415
added /usr/local/lib linker path
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Sat, 21 Jan 2012 04:15:30 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@3 | 1 varying vec3 vpos, ldir, norm; |
nuclear@3 | 2 |
nuclear@3 | 3 void main() |
nuclear@3 | 4 { |
nuclear@3 | 5 gl_Position = ftransform(); |
nuclear@3 | 6 |
nuclear@3 | 7 vpos = (gl_ModelViewMatrix * gl_Vertex).xyz; |
nuclear@3 | 8 norm = gl_NormalMatrix * gl_Normal; |
nuclear@3 | 9 ldir = gl_LightSource[0].position.xyz; |
nuclear@3 | 10 } |