• Home
  • Raw
  • Download

Lines Matching refs:light

91       struct gl_light *light;  in TAG()  local
110 foreach (light, &ctx->Light.EnabledList) { in TAG()
121 if (!(light->_Flags & LIGHT_POSITIONAL)) { in TAG()
123 COPY_3V(VP, light->_VP_inf_norm); in TAG()
124 attenuation = light->_VP_inf_spot_attenuation; in TAG()
129 SUB_3V(VP, light->_Position, vertex); in TAG()
138 attenuation = 1.0F / (light->ConstantAttenuation + d * in TAG()
139 (light->LinearAttenuation + d * in TAG()
140 light->QuadraticAttenuation)); in TAG()
143 if (light->_Flags & LIGHT_SPOT) { in TAG()
144 GLfloat PV_dot_dir = - DOT3(VP, light->_NormSpotDirection); in TAG()
146 if (PV_dot_dir<light->_CosCutoff) { in TAG()
150 GLfloat spot = powf(PV_dot_dir, light->SpotExponent); in TAG()
164 ACC_SCALE_SCALAR_3V(sum[0], attenuation, light->_MatAmbient[0]); in TAG()
175 ACC_SCALE_SCALAR_3V( sum[1], attenuation, light->_MatAmbient[1]); in TAG()
182 COPY_3V(contrib, light->_MatAmbient[side]); in TAG()
183 ACC_SCALE_SCALAR_3V(contrib, n_dot_VP, light->_MatDiffuse[side]); in TAG()
195 else if (light->_Flags & LIGHT_POSITIONAL) { in TAG()
201 h = light->_h_inf_norm; in TAG()
211 light->_MatSpecular[side]); in TAG()
269 struct gl_light *light; in TAG() local
286 foreach (light, &ctx->Light.EnabledList) { in TAG()
298 if (!(light->_Flags & LIGHT_POSITIONAL)) { in TAG()
300 COPY_3V(VP, light->_VP_inf_norm); in TAG()
301 attenuation = light->_VP_inf_spot_attenuation; in TAG()
307 SUB_3V(VP, light->_Position, vertex); in TAG()
316 attenuation = 1.0F / (light->ConstantAttenuation + d * in TAG()
317 (light->LinearAttenuation + d * in TAG()
318 light->QuadraticAttenuation)); in TAG()
321 if (light->_Flags & LIGHT_SPOT) { in TAG()
322 GLfloat PV_dot_dir = - DOT3(VP, light->_NormSpotDirection); in TAG()
324 if (PV_dot_dir<light->_CosCutoff) { in TAG()
328 GLfloat spot = powf(PV_dot_dir, light->SpotExponent); in TAG()
342 ACC_SCALE_SCALAR_3V(sum[0], attenuation, light->_MatAmbient[0]); in TAG()
353 ACC_SCALE_SCALAR_3V( sum[1], attenuation, light->_MatAmbient[1]); in TAG()
359 COPY_3V(contrib, light->_MatAmbient[side]); in TAG()
362 ACC_SCALE_SCALAR_3V(contrib, n_dot_VP, light->_MatDiffuse[side]); in TAG()
374 else if (light->_Flags & LIGHT_POSITIONAL) { in TAG()
380 h = light->_h_inf_norm; in TAG()
388 light->_MatSpecular[side]); in TAG()
423 const struct gl_light *light = ctx->Light.EnabledList.next; in TAG() local
466 COPY_3V(base[0], light->_MatAmbient[0]); in TAG()
471 COPY_3V(base[1], light->_MatAmbient[1]); in TAG()
477 n_dot_VP = DOT3(normal, light->_VP_inf_norm); in TAG()
481 GLfloat n_dot_h = -DOT3(normal, light->_h_inf_norm); in TAG()
484 ACC_SCALE_SCALAR_3V(sum, -n_dot_VP, light->_MatDiffuse[1]); in TAG()
487 ACC_SCALE_SCALAR_3V(sum, spec, light->_MatSpecular[1]); in TAG()
495 GLfloat n_dot_h = DOT3(normal, light->_h_inf_norm); in TAG()
498 ACC_SCALE_SCALAR_3V(sum, n_dot_VP, light->_MatDiffuse[0]); in TAG()
501 ACC_SCALE_SCALAR_3V(sum, spec, light->_MatSpecular[0]); in TAG()
534 const struct gl_light *light; in TAG() local
578 foreach (light, &ctx->Light.EnabledList) { in TAG()
581 ACC_3V(sum[0], light->_MatAmbient[0]); in TAG()
583 ACC_3V(sum[1], light->_MatAmbient[1]); in TAG()
586 n_dot_VP = DOT3(normal, light->_VP_inf_norm); in TAG()
589 ACC_SCALE_SCALAR_3V(sum[0], n_dot_VP, light->_MatDiffuse[0]); in TAG()
590 n_dot_h = DOT3(normal, light->_h_inf_norm); in TAG()
593 ACC_SCALE_SCALAR_3V( sum[0], spec, light->_MatSpecular[0]); in TAG()
598 ACC_SCALE_SCALAR_3V(sum[1], -n_dot_VP, light->_MatDiffuse[1]); in TAG()
599 n_dot_h = -DOT3(normal, light->_h_inf_norm); in TAG()
602 ACC_SCALE_SCALAR_3V( sum[1], spec, light->_MatSpecular[1]); in TAG()