Lines Matching refs:Lights
26 support multiple lights
45 lights to light the diffuse bitmap.
48 @param lights the lights applied to the normal map
54 const SkLightingShader::Lights* lights,
60 , fLights(SkRef(lights))
116 SkAutoTUnref<const SkLightingShader::Lights> fLights;
145 const GrTextureParams& normParams, const SkLightingShader::Lights* lights,
157 // fuse all ambient lights into a single one
159 for (int i = 0; i < lights->numLights(); ++i) {
160 if (SkLight::kAmbient_LightType == lights->light(i).type()) {
161 fAmbientColor += lights->light(i).color();
164 fLightColor = lights->light(i).color();
165 fLightDir = lights->light(i).dir();
592 SkLightingShader::Lights::Builder builder;
613 SkAutoTUnref<const SkLightingShader::Lights> lights(builder.finish());
615 return new SkLightingShaderImpl(diffuse, normal, lights, SkVector::Make(1.0f, 0.0f),
705 const Lights* lights,
717 return new SkLightingShaderImpl(diffuse, normal, lights, invNormRotation, diffLocalM,