varying vec3 dir; void main(){ gl_Position = ftransform(); dir = gl_Vertex.xyz; }