Close

Relief for ODA Team in Ukraine

Learn more
ODA PRC SDK
OdPrcMaterialGeneric::setAmbient Method (double, double, double, bool)
Syntax
C++
void setAmbient(double r, double g, double b, bool preventDuplication = false);

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

 

Parameters
Description
r
[in] A new red component value to be set. 0-1 range.
g
[in] A new green component value to be set. 0-1 range.
b
[in] A new blue component value to be set. 0-1 range.
preventDuplication
[in] Add new color to the end of color array or search the array to prevent duplication.
Copyright © 2002-2022. Open Design Alliance All rights reserved.