C4 Engine
C4 Engine API Documentation

class SpecularAttribute

Defined in:  C4Attributes.h
The SpecularAttribute class represents the material attribute for a specular color.
Definition

class SpecularAttribute final : public Attribute

Member Functions
SpecularAttribute::GetSpecularColor Returns the specular color.
SpecularAttribute::SetSpecularColor Sets the specular color.
SpecularAttribute::GetSpecularExponent Returns the specular exponent.
SpecularAttribute::SetSpecularExponent Sets the specular exponent.
Constructor

SpecularAttribute(const ColorRGBA& color, float exponent, uint32 flags = 0);

Parameters
color The initial specular color.
exponent The initial specular exponent.
flags The initial attribute flags. See the Attribute::SetAttributeFlags function.
Description
The SpecularAttribute class represents the material attribute for a specular color. The specular color each lighting pass, but does not contribute to the ambient pass. The presence of a specular material attribute determines whether a specular term is calculated when an object is rendered.
Base Classes
Attribute A SpecularAttribute is a specific type of attribute.
See Also

ColorRGBA