Facebook Twitter YouTube

class SpecularAttribute

Defined in:  TSAttributes.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, unsigned_int32 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