Home
last modified time | relevance | path

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

12345678910

/external/mesa3d/src/mesa/tnl/
Dt_vb_lighttmp.h91 struct gl_light *light; in TAG() local
110 foreach (light, &ctx->Light.EnabledList) { in TAG()
121 if (!(light->_Flags & LIGHT_POSITIONAL)) { in TAG()
123 COPY_3V(VP, light->_VP_inf_norm); in TAG()
124 attenuation = light->_VP_inf_spot_attenuation; in TAG()
129 SUB_3V(VP, light->_Position, vertex); in TAG()
138 attenuation = 1.0F / (light->ConstantAttenuation + d * in TAG()
139 (light->LinearAttenuation + d * in TAG()
140 light->QuadraticAttenuation)); in TAG()
143 if (light->_Flags & LIGHT_SPOT) { in TAG()
[all …]
Dt_rasterpos.c123 const struct gl_light *light; in shade_rastpos() local
131 foreach (light, &ctx->Light.EnabledList) { in shade_rastpos()
137 if (!(light->_Flags & LIGHT_POSITIONAL)) { in shade_rastpos()
139 COPY_3V(VP, light->_VP_inf_norm); in shade_rastpos()
140 attenuation = light->_VP_inf_spot_attenuation; in shade_rastpos()
147 SUB_3V(VP, light->_Position, vertex); in shade_rastpos()
157 attenuation = 1.0F / (light->ConstantAttenuation + d * in shade_rastpos()
158 (light->LinearAttenuation + d * in shade_rastpos()
159 light->QuadraticAttenuation)); in shade_rastpos()
161 if (light->_Flags & LIGHT_SPOT) { in shade_rastpos()
[all …]
/external/mesa3d/src/mesa/main/
Dlight.c104 struct gl_light *light; in _mesa_light() local
107 light = &ctx->Light.Light[lnum]; in _mesa_light()
111 if (TEST_EQ_4V(light->Ambient, params)) in _mesa_light()
114 COPY_4V( light->Ambient, params ); in _mesa_light()
117 if (TEST_EQ_4V(light->Diffuse, params)) in _mesa_light()
120 COPY_4V( light->Diffuse, params ); in _mesa_light()
123 if (TEST_EQ_4V(light->Specular, params)) in _mesa_light()
126 COPY_4V( light->Specular, params ); in _mesa_light()
130 if (TEST_EQ_4V(light->EyePosition, params)) in _mesa_light()
133 COPY_4V(light->EyePosition, params); in _mesa_light()
[all …]
Dlight.h50 _mesa_Lightf( GLenum light, GLenum pname, GLfloat param );
53 _mesa_Lightfv( GLenum light, GLenum pname, const GLfloat *params );
56 _mesa_Lightiv( GLenum light, GLenum pname, const GLint *params );
59 _mesa_Lighti( GLenum light, GLenum pname, GLint param );
74 _mesa_GetLightfv( GLenum light, GLenum pname, GLfloat *params );
77 _mesa_GetLightiv( GLenum light, GLenum pname, GLint *params );
Des1_conversion.c234 _es_GetLightxv(GLenum light, GLenum pname, GLfixed *params) in _es_GetLightxv() argument
240 if (light < GL_LIGHT0 || light > GL_LIGHT7) { in _es_GetLightxv()
242 "glGetLightxv(light=0x%x)", light); in _es_GetLightxv()
268 _mesa_GetLightfv(light, pname, converted_params); in _es_GetLightxv()
500 _es_Lightx(GLenum light, GLenum pname, GLfixed param) in _es_Lightx() argument
502 _mesa_Lightf(light, pname, (GLfloat) (param / 65536.0f)); in _es_Lightx()
506 _es_Lightxv(GLenum light, GLenum pname, const GLfixed *params) in _es_Lightxv() argument
512 if (light < GL_LIGHT0 || light > GL_LIGHT7) { in _es_Lightxv()
514 "glLightxv(light=0x%x)", light); in _es_Lightxv()
544 _mesa_Lightfv(light, pname, converted_params); in _es_Lightxv()
Des1_conversion.h52 _es_GetLightxv(GLenum light, GLenum pname, GLfixed *params);
76 _es_Lightx(GLenum light, GLenum pname, GLfixed param);
79 _es_Lightxv(GLenum light, GLenum pname, const GLfixed *params);
Ddescrip.mms61 light.c \
136 light.obj,\
220 light.obj : light.c
/external/skia/src/effects/
DSkEmbossMaskFilter.cpp16 SkMaskFilter* SkEmbossMaskFilter::Create(SkScalar blurSigma, const Light& light) { in Create() argument
17 return new SkEmbossMaskFilter(blurSigma, light); in Create()
48 SkEmbossMaskFilter::Light light; in CreateEmboss() local
50 memcpy(light.fDirection, direction, sizeof(light.fDirection)); in CreateEmboss()
51 light.fAmbient = SkToU8(am); in CreateEmboss()
52 light.fSpecular = SkToU8(sp); in CreateEmboss()
54 return SkEmbossMaskFilter::Create(blurSigma, light); in CreateEmboss()
68 SkEmbossMaskFilter::SkEmbossMaskFilter(SkScalar blurSigma, const Light& light) in SkEmbossMaskFilter() argument
69 : fLight(light), fBlurSigma(blurSigma) { in SkEmbossMaskFilter()
108 Light light = fLight; in filterMask() local
[all …]
DSkLightingImageFilter.cpp81 SkPMColor light(const SkPoint3& normal, const SkPoint3& surfaceTolight, in light() function in __anon3f5f43a10111::DiffuseLightingType
103 SkPMColor light(const SkPoint3& normal, const SkPoint3& surfaceTolight, in light() function in __anon3f5f43a10111::SpecularLightingType
211 const SkImageFilterLight* light, in lightBitmap() argument
217 const LightType* l = static_cast<const LightType*>(light); in lightBitmap()
231 *dptr++ = lightingType.light(topLeftNormal(m, surfaceScale), surfaceToLight, in lightBitmap()
239 *dptr++ = lightingType.light(topNormal(m, surfaceScale), surfaceToLight, in lightBitmap()
244 *dptr++ = lightingType.light(topRightNormal(m, surfaceScale), surfaceToLight, in lightBitmap()
258 *dptr++ = lightingType.light(leftNormal(m, surfaceScale), surfaceToLight, in lightBitmap()
266 *dptr++ = lightingType.light(interiorNormal(m, surfaceScale), surfaceToLight, in lightBitmap()
271 *dptr++ = lightingType.light(rightNormal(m, surfaceScale), surfaceToLight, in lightBitmap()
[all …]
DSkEmbossMask.cpp81 void SkEmbossMask::Emboss(SkMask* mask, const SkEmbossMaskFilter::Light& light) { in Emboss() argument
86 int specular = light.fSpecular; in Emboss()
87 int ambient = light.fAmbient; in Emboss()
88 SkFixed lx = SkScalarToFixed(light.fDirection[0]); in Emboss()
89 SkFixed ly = SkScalarToFixed(light.fDirection[1]); in Emboss()
90 SkFixed lz = SkScalarToFixed(light.fDirection[2]); in Emboss()
/external/autotest/client/site_tests/hardware_LightSensor/
Dcontrol9 Fails if the light sensor kernel module is not loaded, or its sys files
20 This tests the interface provided by the light sensor kernel module for
21 controlling various light sensors (TSL2560/1/2/3, ISL29018, etc)
22 light-to-digital converters (ie, light sensor chips).
/external/skia/src/core/
DSkLightingShader.cpp160 if (SkLight::kAmbient_LightType == lights->light(i).type()) { in LightingFP()
161 fAmbientColor += lights->light(i).color(); in LightingFP()
164 fLightColor = lights->light(i).color(); in LightingFP()
165 fLightDir = lights->light(i).dir(); in LightingFP()
528 const SkLight& light = lightShader.fLights->light(l); in shadeSpan() local
530 if (SkLight::kAmbient_LightType == light.type()) { in shadeSpan()
531 accum += light.color().makeScale(255.0f); in shadeSpan()
533 SkScalar NdotL = xformedNorm.dot(light.dir()); in shadeSpan()
538 accum.fX += light.color().fX * SkColorGetR(diffColor) * NdotL; in shadeSpan()
539 accum.fY += light.color().fY * SkColorGetG(diffColor) * NdotL; in shadeSpan()
[all …]
DSkLightingShader.h34 void add(const SkLight& light) { in add() argument
36 *fLights->fLights.push() = light; in add()
52 const SkLight& light(int index) const { in light() function
/external/skia/src/views/
DSkWidgets.cpp243 SkEmbossMaskFilter::Light light;
245 light.fDirection[0] = SK_Scalar1/2;
246 light.fDirection[1] = SK_Scalar1/2;
247 light.fDirection[2] = SK_Scalar1/3;
248 light.fAmbient = 0x48;
249 light.fSpecular = 0x80;
253 light.fDirection[0] = -light.fDirection[0];
254 light.fDirection[1] = -light.fDirection[1];
257 light.fDirection[2] += SK_Scalar1/4;
260 paint->setMaskFilter(new SkEmbossMaskFilter(sigma, light))->unref();
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11gears/
Dd3d11gears.hlsl31 float4 light;
48 float3 light : LIGHT;
57 result.light = light - view;
66 float3 nlight = normalize(input.light);
/external/libweave/examples/
Dexamples.mk26 examples/daemon/light/light.cc \
66 out/$(BUILD_MODE)/weave_daemon_light : out/$(BUILD_MODE)/examples/daemon/light/light.o $(daemon_dep…
/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);
/external/skia/include/effects/
DSkEmbossMaskFilter.h26 static SkMaskFilter* Create(SkScalar blurSigma, const Light& light);
39 SkEmbossMaskFilter(SkScalar blurSigma, const Light& light);
DSkLightingImageFilter.h45 SkLightingImageFilter(SkImageFilterLight* light,
50 const SkImageFilterLight* light() const { return fLight.get(); } in light() function
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/holiday/
DHolidayBorderPanel.java375 Color light = getBackground().brighter().brighter().brighter(); in paint() local
387 topleft = light; in paint()
392 bottomright = light; in paint()
442 g.setColor(light); in paint()
/external/skia/samplecode/
DSampleAll.cpp377 SkEmbossMaskFilter::Light light; in drawPicture() local
378 light.fDirection[0] = SK_Scalar1/2; in drawPicture()
379 light.fDirection[1] = SK_Scalar1/2; in drawPicture()
380 light.fDirection[2] = SK_Scalar1/3; in drawPicture()
381 light.fAmbient = 0x48; in drawPicture()
382 light.fSpecular = 0x80; in drawPicture()
384 SkMaskFilter* embossFilter = SkEmbossMaskFilter::Create(sigma, light); in drawPicture()
/external/bzip2/
Dbzip.css8 #eeeeee very light gray pre background
9 #f2f2f9 very light blue nav table background
/external/icu/icu4c/source/data/unit/
Dmt.txt61 light{
139 light{
/external/clang/test/Index/
Dprint-bitwidth.c10 unsigned light : 1; member

12345678910