API Reference > Classes > PRC Graphical Classes > OdPrcContentLight Class > OdPrcContentLight Methods > setDiffuse Method > OdPrcContentLight::setDiffuse Method (double, double, double, bool)
OdPrcContentLight::setDiffuse Method (double, double, double, bool)
Syntax
C++
void setDiffuse(double r, double g, double b, bool preventDuplication = false);
Parameters 
Description 
double r 
[in] A new red component value to be set. 0-1 range.  
double g 
[in] A new green component value to be set. 0-1 range.  
double b 
[in] A new blue component value to be set. 0-1 range.  
bool preventDuplication = false 
[in] Add new color to the end of color array or search the array to prevent duplication. 

Sets a new diffuse color. Object must be database resident. 

 

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.