nuclear@3: varying vec3 vpos, ldir, norm; nuclear@3: nuclear@3: void main() nuclear@3: { nuclear@3: gl_Position = ftransform(); nuclear@3: nuclear@3: vpos = (gl_ModelViewMatrix * gl_Vertex).xyz; nuclear@3: norm = gl_NormalMatrix * gl_Normal; nuclear@3: ldir = gl_LightSource[0].position.xyz; nuclear@3: }