Lines Matching refs:light
50 Light light = Light::MakePoint(color, dirOrPos, intensity, isRadial);
51 light.setShadowMap(depthMap);
52 builder.add(light);
54 Light light = Light::MakeDirectional(color, dirOrPos, isRadial);
55 light.setShadowMap(depthMap);
56 builder.add(light);
77 Light light(fLights[i].type(), xform_color(fLights[i].color(), xformer),
79 builder.add(light);
90 const Light& light = this->light(l);
92 bool isPoint = Light::kPoint_LightType == light.type();
95 buf.writeScalarArray(&light.color().fX, 3);
96 buf.writeScalarArray(&light.dir().fX, 3);
98 bool hasShadowMap = light.getShadowMap() != nullptr;
101 bool isRadial = light.isRadial();
105 buf.writeImage(light.getShadowMap());
108 buf.writeScalar(light.intensity());