Lines Matching refs:Light
59 const struct gl_material *mat = &ctx->Light.Material; in _mesa_fetch_state()
98 COPY_4V(value, ctx->Light.Light[ln].Ambient); in _mesa_fetch_state()
101 COPY_4V(value, ctx->Light.Light[ln].Diffuse); in _mesa_fetch_state()
104 COPY_4V(value, ctx->Light.Light[ln].Specular); in _mesa_fetch_state()
107 COPY_4V(value, ctx->Light.Light[ln].EyePosition); in _mesa_fetch_state()
110 value[0] = ctx->Light.Light[ln].ConstantAttenuation; in _mesa_fetch_state()
111 value[1] = ctx->Light.Light[ln].LinearAttenuation; in _mesa_fetch_state()
112 value[2] = ctx->Light.Light[ln].QuadraticAttenuation; in _mesa_fetch_state()
113 value[3] = ctx->Light.Light[ln].SpotExponent; in _mesa_fetch_state()
116 COPY_3V(value, ctx->Light.Light[ln].SpotDirection); in _mesa_fetch_state()
117 value[3] = ctx->Light.Light[ln]._CosCutoff; in _mesa_fetch_state()
120 value[0] = ctx->Light.Light[ln].SpotCutoff; in _mesa_fetch_state()
130 COPY_3V(p, ctx->Light.Light[ln].EyePosition); in _mesa_fetch_state()
143 COPY_4V(value, ctx->Light.Model.Ambient); in _mesa_fetch_state()
150 value[i] = ctx->Light.Model.Ambient[i] in _mesa_fetch_state()
151 * ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_AMBIENT][i] in _mesa_fetch_state()
152 + ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_EMISSION][i]; in _mesa_fetch_state()
154 value[3] = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_DIFFUSE][3]; in _mesa_fetch_state()
160 value[i] = ctx->Light.Model.Ambient[i] in _mesa_fetch_state()
161 * ctx->Light.Material.Attrib[MAT_ATTRIB_BACK_AMBIENT][i] in _mesa_fetch_state()
162 + ctx->Light.Material.Attrib[MAT_ATTRIB_BACK_EMISSION][i]; in _mesa_fetch_state()
164 value[3] = ctx->Light.Material.Attrib[MAT_ATTRIB_BACK_DIFFUSE][3]; in _mesa_fetch_state()
176 value[i] = ctx->Light.Light[ln].Ambient[i] * in _mesa_fetch_state()
177 ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_AMBIENT+face][i]; in _mesa_fetch_state()
180 value[3] = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_AMBIENT+face][3]; in _mesa_fetch_state()
184 value[i] = ctx->Light.Light[ln].Diffuse[i] * in _mesa_fetch_state()
185 ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_DIFFUSE+face][i]; in _mesa_fetch_state()
188 value[3] = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_DIFFUSE+face][3]; in _mesa_fetch_state()
192 value[i] = ctx->Light.Light[ln].Specular[i] * in _mesa_fetch_state()
193 ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_SPECULAR+face][i]; in _mesa_fetch_state()
196 value[3] = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_SPECULAR+face][3]; in _mesa_fetch_state()
412 if(ctx->Light._ClampVertexColor && in _mesa_fetch_state()
504 COPY_3V(value, ctx->Light.Light[ln]._NormSpotDirection); in _mesa_fetch_state()
505 value[3] = ctx->Light.Light[ln]._CosCutoff; in _mesa_fetch_state()
512 COPY_4V(value, ctx->Light.Light[ln]._Position); in _mesa_fetch_state()
519 COPY_4V(value, ctx->Light.Light[ln]._Position); in _mesa_fetch_state()
532 COPY_3V(p, ctx->Light.Light[ln]._Position); in _mesa_fetch_state()