C4 Engine
C4 Engine API Documentation

class RefractionAttribute

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

class RefractionAttribute final : public Attribute

Member Functions
RefractionAttribute::GetRefractionColor Sets the refraction color.
RefractionAttribute::SetRefractionColor Sets the refraction color.
Constructor

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

Parameters
color The initial refraction color.
scale The warp offset scale.
flags The initial attribute flags. See the Attribute::SetAttributeFlags function.
Description


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

ColorRGBA