metasurf

view 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
line source
1 varying vec3 vpos, ldir, norm;
3 void main()
4 {
5 gl_Position = ftransform();
7 vpos = (gl_ModelViewMatrix * gl_Vertex).xyz;
8 norm = gl_NormalMatrix * gl_Normal;
9 ldir = gl_LightSource[0].position.xyz;
10 }