C4 Engine
C4 Engine API Documentation

class EnvironmentAttribute

Defined in:  C4Attributes.h
The EnvironmentAttribute class represents the material attribute for an environment color.
Definition

class EnvironmentAttribute final : public Attribute

Member Functions
EnvironmentAttribute::GetEnvironmentColor Returns the environment color.
EnvironmentAttribute::SetEnvironmentColor Sets the environment color.
Constructor

explicit EnvironmentAttribute(const ColorRGBA& color, uint32 flags = 0);

Parameters
color The initial environment color.
flags The initial attribute flags. See the Attribute::SetAttributeFlags function.
Description
The EnvironmentAttribute class represents the material attribute for an environment color. The environment color is applied during the ambient rendering pass only.
Base Classes
Attribute An EnvironmentAttribute is a specific type of attribute.
See Also

ColorRGBA