DiffuseAttribute::SetDiffuseAlpha
Defined in:
Sets the alpha component of the diffuse color.
C4Attributes.h
Prototype
void SetDiffuseAlpha(float alpha);
Parameters
alpha |
The new diffuse alpha component. |
Description
The SetDiffuseAlpha
attribute sets the alpha component of the diffuse color stored in a diffuse material attribute to the value given by the alpha
parameter. The red, green, and blue components are not changed. A renderable object to which the affected attribute applies will subsequently be rendered using the new color.
See Also