Close
Relief for ODA Team in Ukraine
Learn more
ODA PRC SDK
API Reference
>
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
);
Description
Sets a new diffuse 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
OdPrcContentLight 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!