uniform vec3 CamPos; varying vec3 camVec; void main() { gl_Position = ftransform(); gl_TexCoord[0] = gl_MultiTexCoord0; camVec = (gl_Vertex.xyz - CamPos); }