Lines Matching refs:light
50 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()
95 buf.writeScalarArray(&light.color().fX, 3); in flatten()
96 buf.writeScalarArray(&light.dir().fX, 3); in flatten()
98 bool hasShadowMap = light.getShadowMap() != nullptr; in flatten()
101 bool isRadial = light.isRadial(); in flatten()
105 buf.writeImage(light.getShadowMap()); in flatten()
108 buf.writeScalar(light.intensity()); in flatten()