class DiffuseAttribute
Defined in:
The C4Attributes.h
DiffuseAttribute
class represents the material attribute for a diffuse color.
Definition
class DiffuseAttribute final : public Attribute
Member Functions
DiffuseAttribute::GetDiffuseColor |
Returns the diffuse color. |
DiffuseAttribute::SetDiffuseColor |
Sets the diffuse color. |
DiffuseAttribute::SetDiffuseAlpha |
Sets the alpha component of the diffuse color. |
Constructor
explicit DiffuseAttribute(const ColorRGBA& color, uint32 flags = 0);
Parameters
color |
The initial diffuse color. |
flags |
The initial attribute flags. See the Attribute::SetAttributeFlags function.
|
Description
The DiffuseAttribute
class represents the material attribute for a diffuse color. The diffuse color is applied during both the ambient rendering pass and each lighting pass.
Base Classes
Attribute |
A DiffuseAttribute is a specific type of attribute.
|
See Also