Home
last modified time | relevance | path

Searched refs:Light (Results 1 - 25 of 39) sorted by relevance

12

/third_party/mesa3d/src/mesa/main/
H A 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 in _mesa_GetLightfv()
[all...]
H A 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()
H A 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 in pop_enable_group()
[all...]
H A 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 in _mesa_RasterPos()
[all...]
H A Denable.c484 if (ctx->Light.ColorMaterialEnabled == state) in _mesa_set_enable()
489 ctx->Light.ColorMaterialEnabled = state; in _mesa_set_enable()
545 if (ctx->Light.Light[cap-GL_LIGHT0].Enabled == state) in _mesa_set_enable()
549 ctx->Light.Light[cap-GL_LIGHT0].Enabled = state; in _mesa_set_enable()
551 ctx->Light._EnabledLights |= 1u << (cap - GL_LIGHT0); in _mesa_set_enable()
554 ctx->Light._EnabledLights &= ~(1u << (cap - GL_LIGHT0)); in _mesa_set_enable()
560 if (ctx->Light.Enabled == state) in _mesa_set_enable()
565 ctx->Light in _mesa_set_enable()
[all...]
H A Dffvertex_prog.c147 if (ctx->Light.Material.Attrib[attr][0] != 0.0F) in check_active_shininess()
185 if (ctx->Light.Enabled) { in make_state_key()
188 if (ctx->Light.Model.LocalViewer) in make_state_key()
191 if (ctx->Light.Model.TwoSide) in make_state_key()
194 if (ctx->Light.Model.ColorControl == GL_SEPARATE_SPECULAR_COLOR) in make_state_key()
197 if (ctx->Light.ColorMaterialEnabled) { in make_state_key()
198 key->light_color_material_mask = ctx->Light._ColorMaterialBitmask; in make_state_key()
201 mask = ctx->Light._EnabledLights; in make_state_key()
204 struct gl_light_uniforms *lu = &ctx->Light.LightSource[i]; in make_state_key()
H A Dblend.c1064 ctx->Light.ClampVertexColor = clamp; in _mesa_ClampColor()
1114 return get_clamp_color(drawFb, ctx->Light.ClampVertexColor); in _mesa_get_clamp_vertex_color()
1159 ctx->Light._ClampVertexColor = in _mesa_update_clamp_vertex_color()
/third_party/skia/src/effects/
H A 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()
H A DSkEmbossMaskFilter.h19 struct Light { struct in SkEmbossMaskFilter
26 static sk_sp<SkMaskFilter> Make(SkScalar blurSigma, const Light& light);
36 SkEmbossMaskFilter(SkScalar blurSigma, const Light& light);
42 Light fLight;
H A DSkEmbossMask.h16 static void Emboss(SkMask* mask, const SkEmbossMaskFilter::Light&);
H A DSkEmbossMask.cpp48 void SkEmbossMask::Emboss(SkMask* mask, const SkEmbossMaskFilter::Light& light) { in Emboss()
88 // R = 2 (Light * Normal) Normal - Light in Emboss()
/third_party/mesa3d/src/mesa/program/
H A 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 in fetch_state()
[all...]
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_atom_rasterizer.c97 ctx->Light.ShadeModel == GL_FLAT; in st_update_rasterizer()
99 raster->flatshade_first = ctx->Light.ProvokingVertex == in st_update_rasterizer()
108 ctx->Light._ClampVertexColor; in st_update_rasterizer()
H A Dst_atom_shader.c136 st->ctx->Light.ShadeModel == GL_FLAT; in st_update_fp()
221 st->ctx->Light._ClampVertexColor && in st_update_vp()
276 st->ctx->Light._ClampVertexColor && in st_update_common_program()
/third_party/skia/src/sfnt/
H A DSkPanose.h51 Light = 3, member in SkPanose::Data::TextAndDisplay::Weight
201 Light = 3, member in SkPanose::Data::Script::Weight
322 Light = 3, member in SkPanose::Data::Decorative::Weight
H A DSkOTTable_OS_2_VA.h30 Light = SkTEndian_SwapBE16(3), member
H A DSkOTTable_OS_2_V0.h29 Light = SkTEndian_SwapBE16(300), member
/third_party/skia/samplecode/
H A DSampleEmboss.cpp25 SkEmbossMaskFilter::Light fLight;
/third_party/skia/modules/skottie/tests/
H A DText.cpp87 { "fName" : "f4", "fFamily": "f4", "fStyle" : "Light" }, in DEF_TEST()
94 { "fName" : "f10", "fFamily": "f10", "fStyle" : "Light Oblique" }, in DEF_TEST()
/third_party/skia/third_party/externals/angle2/src/tests/gles1_conformance_tests/
H A DPrimtestTests.cpp132 TEST_P(GLES1PrimtestTest, Light) in TEST_P()
/third_party/spirv-tools/test/opt/
H A Dlocal_ssa_elim_test.cpp4288 struct Light in TEST_F() struct
4299 Light lights[LIGHT_COUNT]; in TEST_F()
4471 %263 = OpString "Light" in TEST_F()
4511 OpName %Light "Light" in TEST_F()
4512 OpMemberName %Light 0 "position" in TEST_F()
4513 OpMemberName %Light 1 "target" in TEST_F()
4514 OpMemberName %Light 2 "color" in TEST_F()
4515 OpMemberName %Light 3 "viewMatrix" in TEST_F()
4543 OpMemberDecorate %Light in TEST_F()
[all...]
/third_party/mesa3d/src/mesa/vbo/
H A Dvbo_context.c137 init_array(ctx, attrib, size, ctx->Light.Material.Attrib[i]); in init_mat_currval()
H A Dvbo_save_draw.c115 if (color0_changed && ctx->Light.ColorMaterialEnabled) { in playback_copy_to_current()
/third_party/ffmpeg/libavcodec/x86/
H A Dexrdsp.asm3 ;* Copyright (c) 2006 Industrial Light & Magic, a division of Lucas Digital Ltd. LLC
/third_party/skia/tests/
H A DBlurTest.cpp404 SkEmbossMaskFilter::Light light = { in DEF_TEST()
501 static constexpr SkEmbossMaskFilter::Light light = { in DEF_TEST()

Completed in 19 milliseconds

12