metasurf

diff examples/metaballs/sdr/vert.glsl @ 0:7aa4627e492b

first commit
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 25 Oct 2011 07:34:31 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/metaballs/sdr/vert.glsl	Tue Oct 25 07:34:31 2011 +0300
     1.3 @@ -0,0 +1,10 @@
     1.4 +varying vec3 vpos, ldir, norm;
     1.5 +
     1.6 +void main()
     1.7 +{
     1.8 +	gl_Position = ftransform();
     1.9 +
    1.10 +	vpos = (gl_ModelViewMatrix * gl_Vertex).xyz;
    1.11 +	norm = gl_NormalMatrix * gl_Normal;
    1.12 +	ldir = gl_LightSource[0].position.xyz;
    1.13 +}