C4 Engine
C4 Engine API Documentation

DiffuseAttribute::SetDiffuseAlpha

Defined in:  C4Attributes.h
Sets the alpha component of the diffuse color.
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

DiffuseAttribute::SetDiffuseColor

DiffuseAttribute::GetDiffuseColor