Home | History | Annotate | Download | only in tnl

Lines Matching defs:attenuation

115 	 GLfloat attenuation;
120 /* compute VP and attenuation */
124 attenuation = light->_VP_inf_spot_attenuation;
138 attenuation = 1.0F / (light->ConstantAttenuation + d *
142 /* spotlight attenuation */
151 attenuation *= spot;
156 if (attenuation < 1e-3)
164 ACC_SCALE_SCALAR_3V(sum[0], attenuation, light->_MatAmbient[0]);
175 ACC_SCALE_SCALAR_3V( sum[1], attenuation, light->_MatAmbient[1]);
184 ACC_SCALE_SCALAR_3V(sum[side], attenuation, contrib );
209 spec_coef *= attenuation;
292 GLfloat attenuation = 1.0;
297 /* compute VP and attenuation */
301 attenuation = light->_VP_inf_spot_attenuation;
316 attenuation = 1.0F / (light->ConstantAttenuation + d *
320 /* spotlight attenuation */
329 attenuation *= spot;
334 if (attenuation < 1e-3)
342 ACC_SCALE_SCALAR_3V(sum[0], attenuation, light->_MatAmbient[0]);
353 ACC_SCALE_SCALAR_3V( sum[1], attenuation, light->_MatAmbient[1]);
392 ACC_SCALE_SCALAR_3V( sum[side], attenuation, contrib );
460 /* No attenuation, so incoporate _MatAmbient into base color.