Lines Matching refs:light
262 void VertexProcessor::setLightEnable(unsigned int light, bool lightEnable) in setLightEnable() argument
264 if(light < 8) in setLightEnable()
266 context->setLightEnable(light, lightEnable); in setLightEnable()
280 void VertexProcessor::setLightPosition(unsigned int light, const Point &lightPosition) in setLightPosition() argument
282 if(light < 8) in setLightPosition()
284 context->setLightPosition(light, lightPosition); in setLightPosition()
291 void VertexProcessor::setLightDiffuse(unsigned int light, const Color<float> &lightDiffuse) in setLightDiffuse() argument
293 if(light < 8) in setLightDiffuse()
295 ff.lightDiffuse[light][0] = lightDiffuse.r; in setLightDiffuse()
296 ff.lightDiffuse[light][1] = lightDiffuse.g; in setLightDiffuse()
297 ff.lightDiffuse[light][2] = lightDiffuse.b; in setLightDiffuse()
298 ff.lightDiffuse[light][3] = lightDiffuse.a; in setLightDiffuse()
303 void VertexProcessor::setLightSpecular(unsigned int light, const Color<float> &lightSpecular) in setLightSpecular() argument
305 if(light < 8) in setLightSpecular()
307 ff.lightSpecular[light][0] = lightSpecular.r; in setLightSpecular()
308 ff.lightSpecular[light][1] = lightSpecular.g; in setLightSpecular()
309 ff.lightSpecular[light][2] = lightSpecular.b; in setLightSpecular()
310 ff.lightSpecular[light][3] = lightSpecular.a; in setLightSpecular()
315 void VertexProcessor::setLightAmbient(unsigned int light, const Color<float> &lightAmbient) in setLightAmbient() argument
317 if(light < 8) in setLightAmbient()
319 ff.lightAmbient[light][0] = lightAmbient.r; in setLightAmbient()
320 ff.lightAmbient[light][1] = lightAmbient.g; in setLightAmbient()
321 ff.lightAmbient[light][2] = lightAmbient.b; in setLightAmbient()
322 ff.lightAmbient[light][3] = lightAmbient.a; in setLightAmbient()
327 …void VertexProcessor::setLightAttenuation(unsigned int light, float constant, float linear, float … in setLightAttenuation() argument
329 if(light < 8) in setLightAttenuation()
331 ff.attenuationConstant[light] = replicate(constant); in setLightAttenuation()
332 ff.attenuationLinear[light] = replicate(linear); in setLightAttenuation()
333 ff.attenuationQuadratic[light] = replicate(quadratic); in setLightAttenuation()
338 void VertexProcessor::setLightRange(unsigned int light, float lightRange) in setLightRange() argument
340 if(light < 8) in setLightRange()
342 ff.lightRange[light] = lightRange; in setLightRange()
432 void VertexProcessor::setLightViewPosition(unsigned int light, const Point &P) in setLightViewPosition() argument
434 if(light < 8) in setLightViewPosition()
436 ff.lightPosition[light][0] = P.x; in setLightViewPosition()
437 ff.lightPosition[light][1] = P.y; in setLightViewPosition()
438 ff.lightPosition[light][2] = P.z; in setLightViewPosition()
439 ff.lightPosition[light][3] = 1; in setLightViewPosition()