Home
last modified time | relevance | path

Searched refs:Light (Results 1 – 25 of 184) sorted by relevance

12345678

/third_party/mesa3d/src/mesa/main/
Dlight.c47 if (ctx->Light.ShadeModel == mode) in _mesa_ShadeModel()
56 ctx->Light.ShadeModel = mode; in _mesa_ShadeModel()
73 if (ctx->Light.ProvokingVertex == mode) in _mesa_ProvokingVertex()
86 ctx->Light.ProvokingVertex = mode; in _mesa_ProvokingVertex()
103 light = &ctx->Light.Light[lnum]; in do_light()
105 struct gl_light_uniforms *lu = &ctx->Light.LightSource[lnum]; in do_light()
389 COPY_4V( params, ctx->Light.LightSource[l].Ambient ); in _mesa_GetLightfv()
392 COPY_4V( params, ctx->Light.LightSource[l].Diffuse ); in _mesa_GetLightfv()
395 COPY_4V( params, ctx->Light.LightSource[l].Specular ); in _mesa_GetLightfv()
398 COPY_4V( params, ctx->Light.LightSource[l].EyePosition ); in _mesa_GetLightfv()
[all …]
Dstate.h71 if (ctx->Light.Enabled && in _mesa_need_secondary_color()
72 ctx->Light.Model.ColorControl == GL_SEPARATE_SPECULAR_COLOR) in _mesa_need_secondary_color()
109 return ctx->Light.Enabled && ctx->Light.Model.TwoSide; in _mesa_vertex_program_two_side_enabled()
Dattrib.c142 attr->ColorMaterial = ctx->Light.ColorMaterialEnabled; in _mesa_PushAttrib()
150 attr->Light[i] = ctx->Light.Light[i].Enabled; in _mesa_PushAttrib()
152 attr->Lighting = ctx->Light.Enabled; in _mesa_PushAttrib()
222 memcpy(&head->Light, &ctx->Light, sizeof(head->Light)); in _mesa_PushAttrib()
358 TEST_AND_UPDATE(ctx->Light.ColorMaterialEnabled, enable->ColorMaterial, in pop_enable_group()
376 TEST_AND_UPDATE(ctx->Light.Enabled, enable->Lighting, GL_LIGHTING); in pop_enable_group()
881 TEST_AND_UPDATE(ctx->Light.Enabled, attr->Light.Enabled, GL_LIGHTING); in _mesa_PopAttrib()
889 memcpy(ctx->Light.LightSource, attr->Light.LightSource, in _mesa_PopAttrib()
890 sizeof(attr->Light.LightSource)); in _mesa_PopAttrib()
891 memcpy(&ctx->Light.Model, &attr->Light.Model, in _mesa_PopAttrib()
[all …]
Drastpos.c147 /*const*/ GLfloat (*base)[3] = ctx->Light._BaseColor; in shade_rastpos()
155 ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_DIFFUSE][3], 0.0F, 1.0F ); in shade_rastpos()
158 mask = ctx->Light._EnabledLights; in shade_rastpos()
161 struct gl_light *light = &ctx->Light.Light[i]; in shade_rastpos()
162 struct gl_light_uniforms *lu = &ctx->Light.LightSource[i]; in shade_rastpos()
226 if (ctx->Light.Model.LocalViewer) { in shade_rastpos()
249 shine = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_SHININESS][0]; in shade_rastpos()
253 if (ctx->Light.Model.ColorControl==GL_SEPARATE_SPECULAR_COLOR) { in shade_rastpos()
492 if (ctx->Light.Enabled) { in _mesa_RasterPos()
/third_party/skia/third_party/externals/tint/test/bug/tint/
D294.wgsl.expected.spvasm12 OpName %Light "Light"
13 OpMemberName %Light 0 "position"
14 OpMemberName %Light 1 "colour"
19 OpMemberDecorate %Light 0 Offset 0
20 OpMemberDecorate %Light 1 Offset 16
27 %Light = OpTypeStruct %v3float %v3float
28 %_runtimearr_Light = OpTypeRuntimeArray %Light
D294.wgsl.expected.msl4 struct Light {
9 Light light[1];
D294.wgsl.expected.wgsl1 struct Light {
8 light : [[stride(32)]] array<Light>;
D294.wgsl1 struct Light {
6 light : [[stride(32)]] array<Light>;
/third_party/skia/src/effects/
DSkEmbossMaskFilter.cpp27 sk_sp<SkMaskFilter> SkEmbossMaskFilter::Make(SkScalar blurSigma, const Light& light) { in Make()
32 Light newLight = light; in Make()
48 SkEmbossMaskFilter::Light light; in MakeEmboss()
63 SkEmbossMaskFilter::SkEmbossMaskFilter(SkScalar blurSigma, const Light& light) in SkEmbossMaskFilter()
109 Light light = fLight; in filterMask()
129 Light light; in CreateProc()
130 if (buffer.readByteArray(&light, sizeof(Light))) { in CreateProc()
139 Light tmpLight = fLight; in flatten()
DSkEmbossMaskFilter.h19 struct Light { struct
26 static sk_sp<SkMaskFilter> Make(SkScalar blurSigma, const Light& light); argument
36 SkEmbossMaskFilter(SkScalar blurSigma, const Light& light);
42 Light fLight;
/third_party/mesa3d/src/mesa/program/
Dprog_statevars.c92 const struct gl_material *mat = &ctx->Light.Material; in fetch_state()
113 COPY_4V(value, (float*)&ctx->Light.LightSource[ln] + index * 4); in fetch_state()
115 value[0] = ctx->Light.LightSource[ln].SpotCutoff; in fetch_state()
123 STATIC_ASSERT(ARRAY_SIZE(ctx->Light.LightSourceData) == 29 * MAX_LIGHTS); in fetch_state()
126 assert(state[1] + state[2] <= ARRAY_SIZE(ctx->Light.LightSourceData)); in fetch_state()
127 memcpy(value, &ctx->Light.LightSourceData[state[1]], in fetch_state()
136 &ctx->Light.LightSource[first + i].ConstantAttenuation); in fetch_state()
142 COPY_4V(value, ctx->Light.Model.Ambient); in fetch_state()
149 value[i] = ctx->Light.Model.Ambient[i] in fetch_state()
150 * ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_AMBIENT][i] in fetch_state()
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/shaders/flatten/
Dcopy.flatten.vert3 struct Light
19 Light light;
22 Light _52 = Light(UBO[i * 2 + 4].xyz, UBO[i * 2 + 4].w, UBO[i * 2 + 5]);
/third_party/python/Tools/pynche/
Dnamedcolors.txt47 Light Blue #C0D9D9
48 Light Grey #A8A8A8
49 Light Steel Blue #8F8FBD
50 Light Wood #E9C2A6
96 Very Light Grey #CDCDCD
/third_party/skia/third_party/externals/spirv-cross/shaders/flatten/
Dcopy.flatten.vert3 struct Light
15 Light lights[4];
30 Light light = lights[i];
Dstruct.flatten.vert3 struct Light
15 Light light;
Ddynamic.flatten.vert3 struct Light
15 Light lights[4];
/third_party/skia/third_party/externals/spirv-cross/shaders-msl/vert/
Dcopy.flatten.vert3 struct Light
15 Light lights[4];
30 Light light = lights[i];
Ddynamic.flatten.vert3 struct Light
15 Light lights[4];
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders/flatten/
Dcopy.flatten.vert3 struct Light
21 …vec3 _68 = aVertex.xyz - Light(UBO[_96 * 2 + 4].xyz, UBO[_96 * 2 + 4].w, UBO[_96 * 2 + 5]).Positio…
22 …vColor += ((UBO[_96 * 2 + 5] * clamp(1.0 - (length(_68) / Light(UBO[_96 * 2 + 4].xyz, UBO[_96 * 2 …
/third_party/skia/third_party/externals/spirv-cross/shaders-msl/flatten/
Dstruct.flatten.vert3 struct Light
15 Light light;
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl/flatten/
Dstruct.flatten.vert6 struct Light
16 Light light;
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-msl/flatten/
Dstruct.flatten.vert6 struct Light
16 Light light;
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-msl/vert/
Dcopy.flatten.vert6 struct Light
16 Light lights[4];
Ddynamic.flatten.vert6 struct Light
16 Light lights[4];
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl/vert/
Ddynamic.flatten.vert6 struct Light
16 Light lights[4];

12345678