metasurf
annotate examples/metaballs/sdr/vert.glsl @ 5:dedd153d2ceb
- fixed makefile to produce non-broken shared objects
- removed glutGetModifiers from the motion callback and placed it in the mouse
callback as apparently it's not supposed to be called from there.
- added MacOSX include paths in the examples
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 25 Oct 2011 23:38:39 +0300 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 varying vec3 vpos, ldir, norm; |
nuclear@0 | 2 |
nuclear@0 | 3 void main() |
nuclear@0 | 4 { |
nuclear@0 | 5 gl_Position = ftransform(); |
nuclear@0 | 6 |
nuclear@0 | 7 vpos = (gl_ModelViewMatrix * gl_Vertex).xyz; |
nuclear@0 | 8 norm = gl_NormalMatrix * gl_Normal; |
nuclear@0 | 9 ldir = gl_LightSource[0].position.xyz; |
nuclear@0 | 10 } |