Lines Matching refs:Light
142 if (ctx->Light.Material.Attrib[attr][0] != 0.0F)
171 key->separate_specular = (ctx->Light.Model.ColorControl ==
174 if (ctx->Light.Enabled) {
177 if (ctx->Light.Model.LocalViewer)
180 if (ctx->Light.Model.TwoSide)
183 if (ctx->Light.ColorMaterialEnabled) {
184 key->light_color_material_mask = ctx->Light._ColorMaterialBitmask;
188 struct gl_light *light = &ctx->Light.Light[i];
190 if (light->Enabled) {
193 if (light->EyePosition[3] == 0.0)
196 if (light->SpotCutoff == 180.0)
199 if (light->ConstantAttenuation != 1.0 ||
200 light->LinearAttenuation != 0.0 ||
201 light->QuadraticAttenuation != 0.0)
928 static struct ureg get_lightprod( struct tnl_program *p, GLuint light,
934 register_param3(p, STATE_LIGHT, light, property);
941 return register_param4(p, STATE_LIGHTPROD, light, side, property);
1213 /* light is attenuated by distance */