Close
Relief for ODA Team in Ukraine
Learn more
ODA PRC SDK
API Reference
>
Classes
>
OdPrcMaterialGeneric Class
>
OdPrcMaterialGeneric Methods
>
setAmbient Method
>
OdPrcMaterialGeneric::setAmbient Method (double, double, double, bool)
OdPrcMaterialGeneric::setAmbient Method (double, double, double, bool)
Syntax
C++
void
setAmbient
(
double
r
,
double
g
,
double
b
,
bool
preventDuplication
=
false
);
Description
Sets a new ambient color. Object must be database resident.
Parameters
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.
Links
OdPrcMaterialGeneric Class
Was this documentation helpful?
We are sorry. Please tell us what we can improve.
*
Great! Please provide additional feedback.
(Optional)
Thank you for your feedback!
Please wait...
Something went wrong!