API Reference > Classes > PRC Graphical Classes > OdPrcContentLight Class > OdPrcContentLight Methods > setAmbient Method > OdPrcContentLight::setAmbient Method (double, double, double, bool)
OdPrcContentLight::setAmbient Method (double, double, double, bool)
Syntax
C++
void setAmbient(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 ambient color. Object must be database resident. 

 

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