Home | History | Annotate | Download | only in tnl

Lines Matching defs:VP

116 	 GLfloat VP[3];  /* unit vector from vertex to light */
117 GLfloat n_dot_VP; /* n dot VP */
120 /* compute VP and attenuation */
123 COPY_3V(VP, light->_VP_inf_norm);
129 SUB_3V(VP, light->_Position, vertex);
131 d = (GLfloat) LEN_3FV( VP );
135 SELF_SCALE_SCALAR_3V(VP, invd);
144 GLfloat PV_dot_dir = - DOT3(VP, light->_NormSpotDirection);
160 n_dot_VP = DOT3( normal, VP );
186 /* specular term - cannibalize VP... */
191 SUB_3V(VP, VP, v); /* h = VP + VPe */
192 h = VP;
196 h = VP;
293 GLfloat VP[3]; /* unit vector from vertex to light */
294 GLfloat n_dot_VP; /* n dot VP */
297 /* compute VP and attenuation */
300 COPY_3V(VP, light->_VP_inf_norm);
307 SUB_3V(VP, light->_Position, vertex);
309 d = (GLfloat) LEN_3FV( VP );
313 SELF_SCALE_SCALAR_3V(VP, invd);
322 GLfloat PV_dot_dir = - DOT3(VP, light->_NormSpotDirection);
338 n_dot_VP = DOT3( normal, VP );
364 /* specular term - cannibalize VP... */
370 SUB_3V(VP, VP, v); /* h = VP + VPe */
371 h = VP;
375 h = VP;