CloudLayer

consoledoc.h

A layer of clouds which change shape over time and are affected by scene lighting.

More...

CloudLayer

filename

An RGBA texture which should contain normals and opacity (density).

float

Controls the texture repeat of this slot.

Point2F

Controls the direction this slot scrolls.

float

Controls the speed this slot scrolls.

LinearColorF

Base cloud color before lighting.

float

Brightness scale so CloudLayer can be overblown if desired.

float

Fraction of sky covered by clouds 0-1.

float

Overall scalar to texture scroll speed.

float

Abstract number which controls the curvature and height of the dome mesh.

Public Static Attributes

bool

Disables rendering of all instances of this type.

bool

Disables selection of all instances of this type.

Detailed Description

A layer of clouds which change shape over time and are affected by scene lighting.

CloudLayer always renders overhead, following the camera. It is intended as part of the background of your level, rendering in front of Sky/Sun type objects and behind everything else.

The illusion of clouds forming and changing over time is controlled by the normal/opacity texture and the three sets of texture animation parameters. The texture is sampled three times. The first sample defines overall cloud density, where clouds are likely to form and their general size and shape. The second two samples control how it changes over time; they are combined and used as modifiers to the first sample.

CloudLayer is affected by scene lighting and is designed to be used in scenes with dynamic lighting or time of day changes.

CloudLayer

filename texture 

An RGBA texture which should contain normals and opacity (density).

float texScale [3]

Controls the texture repeat of this slot.

Point2F texDirection [3]

Controls the direction this slot scrolls.

float texSpeed [3]

Controls the speed this slot scrolls.

LinearColorF baseColor 

Base cloud color before lighting.

float exposure 

Brightness scale so CloudLayer can be overblown if desired.

float coverage 

Fraction of sky covered by clouds 0-1.

float windSpeed 

Overall scalar to texture scroll speed.

float height 

Abstract number which controls the curvature and height of the dome mesh.

Public Static Attributes

bool isRenderable 

Disables rendering of all instances of this type.

bool isSelectable 

Disables selection of all instances of this type.