metasurf

view examples/volume/sdr/vert.glsl @ 6:c1a60ab45bf7

added commandline option in volume example to set the iso threshold
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 26 Oct 2011 23:38:20 +0300
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 }