Home
last modified time | relevance | path

Searched refs:light (Results 1 – 25 of 292) sorted by relevance

12345678910>>...12

/external/mesa3d/src/mesa/main/
Dlight.c103 struct gl_light *light; in _mesa_light() local
106 light = &ctx->Light.Light[lnum]; in _mesa_light()
110 if (TEST_EQ_4V(light->Ambient, params)) in _mesa_light()
113 COPY_4V( light->Ambient, params ); in _mesa_light()
116 if (TEST_EQ_4V(light->Diffuse, params)) in _mesa_light()
119 COPY_4V( light->Diffuse, params ); in _mesa_light()
122 if (TEST_EQ_4V(light->Specular, params)) in _mesa_light()
125 COPY_4V( light->Specular, params ); in _mesa_light()
129 if (TEST_EQ_4V(light->EyePosition, params)) in _mesa_light()
132 COPY_4V(light->EyePosition, params); in _mesa_light()
[all …]
Dlight.h48 _mesa_Lightf( GLenum light, GLenum pname, GLfloat param );
51 _mesa_Lightfv( GLenum light, GLenum pname, const GLfloat *params );
54 _mesa_Lightiv( GLenum light, GLenum pname, const GLint *params );
57 _mesa_Lighti( GLenum light, GLenum pname, GLint param );
72 _mesa_GetLightfv( GLenum light, GLenum pname, GLfloat *params );
75 _mesa_GetLightiv( GLenum light, GLenum pname, GLint *params );
Drastpos.c138 struct gl_light *light = &ctx->Light.Light[i]; in shade_rastpos() local
144 if (!(light->_Flags & LIGHT_POSITIONAL)) { in shade_rastpos()
146 COPY_3V(VP, light->_VP_inf_norm); in shade_rastpos()
147 attenuation = light->_VP_inf_spot_attenuation; in shade_rastpos()
154 SUB_3V(VP, light->_Position, vertex); in shade_rastpos()
164 attenuation = 1.0F / (light->ConstantAttenuation + d * in shade_rastpos()
165 (light->LinearAttenuation + d * in shade_rastpos()
166 light->QuadraticAttenuation)); in shade_rastpos()
168 if (light->_Flags & LIGHT_SPOT) { in shade_rastpos()
169 GLfloat PV_dot_dir = - DOT3(VP, light->_NormSpotDirection); in shade_rastpos()
[all …]
Des1_conversion.c228 _mesa_GetLightxv(GLenum light, GLenum pname, GLfixed *params) in _mesa_GetLightxv() argument
234 if (light < GL_LIGHT0 || light > GL_LIGHT7) { in _mesa_GetLightxv()
236 "glGetLightxv(light=0x%x)", light); in _mesa_GetLightxv()
262 _mesa_GetLightfv(light, pname, converted_params); in _mesa_GetLightxv()
511 _mesa_Lightx(GLenum light, GLenum pname, GLfixed param) in _mesa_Lightx() argument
513 _mesa_Lightf(light, pname, (GLfloat) (param / 65536.0f)); in _mesa_Lightx()
517 _mesa_Lightxv(GLenum light, GLenum pname, const GLfixed *params) in _mesa_Lightxv() argument
523 if (light < GL_LIGHT0 || light > GL_LIGHT7) { in _mesa_Lightxv()
525 "glLightxv(light=0x%x)", light); in _mesa_Lightxv()
555 _mesa_Lightfv(light, pname, converted_params); in _mesa_Lightxv()
/external/mesa3d/src/mesa/tnl/
Dt_vb_lighttmp.h112 struct gl_light *light = &ctx->Light.Light[l]; in TAG() local
123 if (!(light->_Flags & LIGHT_POSITIONAL)) { in TAG()
125 COPY_3V(VP, light->_VP_inf_norm); in TAG()
126 attenuation = light->_VP_inf_spot_attenuation; in TAG()
131 SUB_3V(VP, light->_Position, vertex); in TAG()
140 attenuation = 1.0F / (light->ConstantAttenuation + d * in TAG()
141 (light->LinearAttenuation + d * in TAG()
142 light->QuadraticAttenuation)); in TAG()
145 if (light->_Flags & LIGHT_SPOT) { in TAG()
146 GLfloat PV_dot_dir = - DOT3(VP, light->_NormSpotDirection); in TAG()
[all …]
/external/skia/src/effects/
DSkEmbossMaskFilter.cpp16 sk_sp<SkMaskFilter> SkEmbossMaskFilter::Make(SkScalar blurSigma, const Light& light) { in Make() argument
17 return sk_sp<SkMaskFilter>(new SkEmbossMaskFilter(blurSigma, light)); in Make()
27 SkEmbossMaskFilter::Light light; in MakeEmboss() local
29 memcpy(light.fDirection, direction, sizeof(light.fDirection)); in MakeEmboss()
31 light.fAmbient = SkUnitScalarClampToByte(ambient); in MakeEmboss()
34 light.fSpecular = static_cast<U8CPU>(SkScalarPin(specular, 0, 16) * kSpecularMultiplier + 0.5); in MakeEmboss()
36 return SkEmbossMaskFilter::Make(blurSigma, light); in MakeEmboss()
51 SkEmbossMaskFilter::SkEmbossMaskFilter(SkScalar blurSigma, const Light& light) in SkEmbossMaskFilter() argument
52 : fLight(light), fBlurSigma(blurSigma) { in SkEmbossMaskFilter()
91 Light light = fLight; in filterMask() local
[all …]
DSkLightingImageFilter.cpp147 virtual SkPMColor light(const SkPoint3& normal, const SkPoint3& surfaceTolight,
155 SkPMColor light(const SkPoint3& normal, const SkPoint3& surfaceTolight, in light() function in DiffuseLightingType
177 SkPMColor light(const SkPoint3& normal, const SkPoint3& surfaceTolight, in light() function in SpecularLightingType
301 *dptr++ = lightingType.light(topLeftNormal(m, surfaceScale), surfaceToLight, in lightBitmap()
309 *dptr++ = lightingType.light(topNormal(m, surfaceScale), surfaceToLight, in lightBitmap()
314 *dptr++ = lightingType.light(topRightNormal(m, surfaceScale), surfaceToLight, in lightBitmap()
328 *dptr++ = lightingType.light(leftNormal(m, surfaceScale), surfaceToLight, in lightBitmap()
336 *dptr++ = lightingType.light(interiorNormal(m, surfaceScale), surfaceToLight, in lightBitmap()
341 *dptr++ = lightingType.light(rightNormal(m, surfaceScale), surfaceToLight, in lightBitmap()
353 *dptr++ = lightingType.light(bottomLeftNormal(m, surfaceScale), surfaceToLight, in lightBitmap()
[all …]
DSkEmbossMask.cpp46 void SkEmbossMask::Emboss(SkMask* mask, const SkEmbossMaskFilter::Light& light) { in Emboss() argument
49 int specular = light.fSpecular; in Emboss()
50 int ambient = light.fAmbient; in Emboss()
51 SkFixed lx = SkScalarToFixed(light.fDirection[0]); in Emboss()
52 SkFixed ly = SkScalarToFixed(light.fDirection[1]); in Emboss()
53 SkFixed lz = SkScalarToFixed(light.fDirection[2]); in Emboss()
/external/skia/src/core/
DSkLights.cpp50 Light light = Light::MakePoint(color, dirOrPos, intensity, isRadial); in MakeFromBuffer() local
51 light.setShadowMap(depthMap); in MakeFromBuffer()
52 builder.add(light); in MakeFromBuffer()
54 Light light = Light::MakeDirectional(color, dirOrPos, isRadial); in MakeFromBuffer() local
55 light.setShadowMap(depthMap); in MakeFromBuffer()
56 builder.add(light); in MakeFromBuffer()
77 Light light(fLights[i].type(), xform_color(fLights[i].color(), xformer), in makeColorSpace() local
79 builder.add(light); in makeColorSpace()
90 const Light& light = this->light(l); in flatten() local
92 bool isPoint = Light::kPoint_LightType == light.type(); in flatten()
[all …]
/external/unicode/
Demoji-sequences.txt322 261D 1F3FB ; Emoji_Modifier_Sequence ; index pointing up: light skin tone …
323 261D 1F3FC ; Emoji_Modifier_Sequence ; index pointing up: medium-light skin tone …
327 26F9 1F3FB ; Emoji_Modifier_Sequence ; person bouncing ball: light skin tone …
328 26F9 1F3FC ; Emoji_Modifier_Sequence ; person bouncing ball: medium-light skin tone …
332 270A 1F3FB ; Emoji_Modifier_Sequence ; raised fist: light skin tone …
333 270A 1F3FC ; Emoji_Modifier_Sequence ; raised fist: medium-light skin tone …
337 270B 1F3FB ; Emoji_Modifier_Sequence ; raised hand: light skin tone …
338 270B 1F3FC ; Emoji_Modifier_Sequence ; raised hand: medium-light skin tone …
342 270C 1F3FB ; Emoji_Modifier_Sequence ; victory hand: light skin tone …
343 270C 1F3FC ; Emoji_Modifier_Sequence ; victory hand: medium-light skin tone …
[all …]
Demoji-zwj-sequences.txt81 1F468 1F3FB 200D 2695 FE0F ; Emoji_ZWJ_Sequence ; man health worker: light skin t…
82 1F468 1F3FB 200D 2696 FE0F ; Emoji_ZWJ_Sequence ; man judge: light skin tone …
83 1F468 1F3FB 200D 2708 FE0F ; Emoji_ZWJ_Sequence ; man pilot: light skin tone …
84 1F468 1F3FB 200D 1F33E ; Emoji_ZWJ_Sequence ; man farmer: light skin tone …
85 1F468 1F3FB 200D 1F373 ; Emoji_ZWJ_Sequence ; man cook: light skin tone …
86 1F468 1F3FB 200D 1F393 ; Emoji_ZWJ_Sequence ; man student: light skin tone …
87 1F468 1F3FB 200D 1F3A4 ; Emoji_ZWJ_Sequence ; man singer: light skin tone …
88 1F468 1F3FB 200D 1F3A8 ; Emoji_ZWJ_Sequence ; man artist: light skin tone …
89 1F468 1F3FB 200D 1F3EB ; Emoji_ZWJ_Sequence ; man teacher: light skin tone …
90 1F468 1F3FB 200D 1F3ED ; Emoji_ZWJ_Sequence ; man factory worker: light skin …
[all …]
/external/skia/include/core/
DSkLights.h49 Light light(kDirectional_LightType, color, dir, isRadial);
50 if (!light.fDirOrPos.normalize()) {
51 light.fDirOrPos.set(0.0f, 0.0f, 1.0f);
53 return light;
146 void add(const Light& light) { in add() argument
148 fLights->fLights.push_back(light); in add()
152 void add(Light&& light) { in add() argument
154 fLights->fLights.push_back(std::move(light)); in add()
176 const Light& light(int index) const { in light() function
180 Light& light(int index) { in light() function
/external/swiftshader/src/Renderer/
DVertexProcessor.cpp262 void VertexProcessor::setLightEnable(unsigned int light, bool lightEnable) in setLightEnable() argument
264 if(light < 8) in setLightEnable()
266 context->setLightEnable(light, lightEnable); in setLightEnable()
280 void VertexProcessor::setLightPosition(unsigned int light, const Point &lightPosition) in setLightPosition() argument
282 if(light < 8) in setLightPosition()
284 context->setLightPosition(light, lightPosition); in setLightPosition()
291 void VertexProcessor::setLightDiffuse(unsigned int light, const Color<float> &lightDiffuse) in setLightDiffuse() argument
293 if(light < 8) in setLightDiffuse()
295 ff.lightDiffuse[light][0] = lightDiffuse.r; in setLightDiffuse()
296 ff.lightDiffuse[light][1] = lightDiffuse.g; in setLightDiffuse()
[all …]
DVertexProcessor.hpp211 void setLightEnable(unsigned int light, bool lightEnable);
215 void setLightPosition(unsigned int light, const Point &lightPosition);
216 void setLightViewPosition(unsigned int light, const Point &lightPosition);
217 void setLightDiffuse(unsigned int light, const Color<float> &lightDiffuse);
218 void setLightSpecular(unsigned int light, const Color<float> &lightSpecular);
219 void setLightAmbient(unsigned int light, const Color<float> &lightAmbient);
220 void setLightAttenuation(unsigned int light, float constant, float linear, float quadratic);
221 void setLightRange(unsigned int light, float lightRange);
/external/python/cpython2/Tools/pynche/X/
Drgb.txt55 119 136 153 light slate gray
57 119 136 153 light slate grey
61 211 211 211 light grey
63 211 211 211 light gray
78 132 112 255 light slate blue
91 135 206 250 light sky blue
95 176 196 222 light steel blue
97 173 216 230 light blue
109 224 255 255 light cyan
126 32 178 170 light sea green
[all …]
/external/swiftshader/src/D3D8/
DDirect3DDevice8.hpp135 long __stdcall SetLight(unsigned long index, const D3DLIGHT8 *light) override;
192 Light &operator=(const D3DLIGHT8 &light) in operator =()
194 Type = light.Type; in operator =()
195 Diffuse = light.Diffuse; in operator =()
196 Specular = light.Specular; in operator =()
197 Ambient = light.Ambient; in operator =()
198 Position = light.Position; in operator =()
199 Direction = light.Direction; in operator =()
200 Range = light.Range; in operator =()
201 Falloff = light.Falloff; in operator =()
[all …]
/external/autotest/client/site_tests/hardware_LightSensor/
Dcontrol9 Fails if the light sensor kernel module is not loaded, or its sys files
19 This tests the interface provided by the light sensor kernel module for
20 controlling various light sensors (TSL2560/1/2/3, ISL29018, etc)
21 light-to-digital converters (ie, light sensor chips).
/external/swiftshader/src/D3D9/
DDirect3DDevice9.hpp151 long __stdcall SetLight(unsigned long index, const D3DLIGHT9 *light) override;
226 Light &operator=(const D3DLIGHT9 &light) in operator =()
228 Type = light.Type; in operator =()
229 Diffuse = light.Diffuse; in operator =()
230 Specular = light.Specular; in operator =()
231 Ambient = light.Ambient; in operator =()
232 Position = light.Position; in operator =()
233 Direction = light.Direction; in operator =()
234 Range = light.Range; in operator =()
235 Falloff = light.Falloff; in operator =()
[all …]
/external/skia/src/shaders/
DSkLightingShader.cpp201 for (const SkLights::Light& light : directionalLights) { in onSetData() local
202 lightDirs.push_back(light.dir()); in onSetData()
203 lightColors.push_back(light.color()); in onSetData()
243 if (SkLights::Light::kDirectional_LightType == lights->light(i).type()) { in LightingFP()
244 fDirectionalLights.push_back(lights->light(i)); in LightingFP()
380 const SkLights::Light& light = lightShader.fLights->light(l); in shadeSpan() local
384 if (SkLights::Light::kDirectional_LightType == light.type()) { in shadeSpan()
385 illuminanceScalingFactor = normals[i].dot(light.dir()); in shadeSpan()
391 accum.fX += light.color().fX * SkColorGetR(diffColor) * illuminanceScalingFactor; in shadeSpan()
392 accum.fY += light.color().fY * SkColorGetG(diffColor) * illuminanceScalingFactor; in shadeSpan()
[all …]
/external/unicode/additions/
Demoji-sequences.txt9 1F93C 1F3FF ; Emoji_Modifier_Sequence ; wrestlers: light sk…
10 … ; Emoji_Modifier_Sequence ; wrestlers: medium-light skin tone
14 1F91D 1F3FF ; Emoji_Modifier_Sequence ; handshake: light sk…
15 … ; Emoji_Modifier_Sequence ; handshake: medium-light skin tone
Demoji-zwj-sequences.txt9 1F93C 1F3FB 200D 2640 FE0F ; Emoji_ZWJ_Sequence ; women wrestling: light sk…
10 1F93C 1F3FB 200D 2642 FE0F ; Emoji_ZWJ_Sequence ; men wrestling: light skin…
11 …0D 2640 FE0F ; Emoji_ZWJ_Sequence ; women wrestling: medium-light skin tone
12 …200D 2642 FE0F ; Emoji_ZWJ_Sequence ; men wrestling: medium-light skin tone
/external/mesa3d/src/gallium/state_trackers/nine/
Dstateblock9.c74 FREE(state->ff.light); in NineStateBlock9_dtor()
317 dst->ff.light = REALLOC(dst->ff.light, in nine_state_copy_common()
320 …memset(&dst->ff.light[dst->ff.num_lights], 0, (num_lights - dst->ff.num_lights) * sizeof(D3DLIGHT9… in nine_state_copy_common()
326 dst->ff.light[i].Type = (D3DLIGHTTYPE)NINED3DLIGHT_INVALID; in nine_state_copy_common()
335 src->ff.light = REALLOC(src->ff.light, in nine_state_copy_common()
338 …memset(&src->ff.light[src->ff.num_lights], 0, (num_lights - src->ff.num_lights) * sizeof(D3DLIGHT9… in nine_state_copy_common()
340 src->ff.light[i].Type = (D3DLIGHTTYPE)NINED3DLIGHT_INVALID; in nine_state_copy_common()
346 if (mask->ff.light[i].Type != NINED3DLIGHT_INVALID) in nine_state_copy_common()
347 dst->ff.light[i] = src->ff.light[i]; in nine_state_copy_common()
477 dst->ff.light = REALLOC(dst->ff.light, in nine_state_copy_common_all()
[all …]
/external/swiftshader/src/OpenGL/libGLES_CM/
DContext.cpp173 light[i].enabled = false; in Context()
174 light[i].ambient = {0.0f, 0.0f, 0.0f, 1.0f}; in Context()
175 light[i].diffuse = {0.0f, 0.0f, 0.0f, 1.0f}; in Context()
176 light[i].specular = {0.0f, 0.0f, 0.0f, 1.0f}; in Context()
177 light[i].position = {0.0f, 0.0f, 1.0f, 0.0f}; in Context()
178 light[i].direction = {0.0f, 0.0f, -1.0f}; in Context()
179 light[i].attenuation = {1.0f, 0.0f, 0.0f}; in Context()
180 light[i].spotExponent = 0.0f; in Context()
181 light[i].spotCutoffAngle = 180.0f; in Context()
184 light[0].diffuse = {1.0f, 1.0f, 1.0f, 1.0f}; in Context()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DGLErrorLogger.java359 public void glLightf(int light, int pname, float param) { in glLightf() argument
360 ((GL10)mGL).glLightf(light, pname, param); in glLightf()
364 public void glLightfv(int light, int pname, FloatBuffer params) { in glLightfv() argument
365 ((GL10)mGL).glLightfv(light, pname, params); in glLightfv()
369 public void glLightfv(int light, int pname, float[] params, int offset) { in glLightfv() argument
370 ((GL10)mGL).glLightfv(light, pname, params, offset); in glLightfv()
374 public void glLightx(int light, int pname, int param) { in glLightx() argument
375 ((GL10)mGL).glLightx(light, pname, param); in glLightx()
379 public void glLightxv(int light, int pname, IntBuffer params) { in glLightxv() argument
380 ((GL10)mGL).glLightxv(light, pname, params); in glLightxv()
[all …]
/external/dng_sdk/source/
Ddng_camera_profile.h345 void SetCalibrationIlluminant1 (uint32 light) in SetCalibrationIlluminant1() argument
347 fCalibrationIlluminant1 = light; in SetCalibrationIlluminant1()
356 void SetCalibrationIlluminant2 (uint32 light) in SetCalibrationIlluminant2() argument
358 fCalibrationIlluminant2 = light; in SetCalibrationIlluminant2()
840 static real64 IlluminantToTemperature (uint32 light);

12345678910>>...12