Lines Matching refs:light
160 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()
540 accum.fZ += light.color().fZ * SkColorGetB(diffColor) * NdotL; in shadeSpan()
633 const SkLight& light = fLights->light(l); in flatten() local
635 bool isAmbient = SkLight::kAmbient_LightType == light.type(); in flatten()
638 buf.writeScalarArray(&light.color().fX, 3); in flatten()
640 buf.writeScalarArray(&light.dir().fX, 3); in flatten()