C4 Engine
C4 Engine API Documentation

class ReflectionAttribute

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

class ReflectionAttribute final : public Attribute

Member Functions
ReflectionAttribute::GetReflectionColor Sets the reflection color.
ReflectionAttribute::SetReflectionColor Sets the reflection color.
Constructor

ReflectionAttribute(const ColorRGBA& color, float factor, float scale, uint32 flags = 0);

Parameters
color The initial reflection color.
factor The normal incidence reflectivity factor.
scale The warp offset scale.
flags The initial attribute flags. See the Attribute::SetAttributeFlags function.
Description


Base Classes
Attribute A ReflectionAttribute is a specific type of attribute.
See Also

ColorRGBA