|
CloudLayer Class Reference
[Atmosphere]
A layer of clouds which change shape over time and are affected by scene lighting. More...
Public Attributes | |
CloudLayer | |
ColorF | baseColor |
Base cloud color before lighting. | |
float | coverage |
Fraction of sky covered by clouds 0-1. | |
float | exposure |
Brightness scale so CloudLayer can be overblown if desired. | |
float | height |
Abstract number which controls the curvature and height of the dome mesh. | |
Point2F | texDirection [3] |
Controls the direction this slot scrolls. | |
float | texScale [3] |
Controls the texture repeat of this slot. | |
float | texSpeed [3] |
Controls the speed this slot scrolls. | |
filename | texture |
An RGBA texture which should contain normals and opacity (density). | |
float | windSpeed |
Overall scalar to texture scroll speed. | |
Static Public Attributes | |
static bool | isRenderable |
Disables rendering of all instances of this type. | |
static bool | isSelectable |
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.
Member Data Documentation
ColorF CloudLayer::baseColor |
Base cloud color before lighting.
float CloudLayer::coverage |
Fraction of sky covered by clouds 0-1.
float CloudLayer::exposure |
Brightness scale so CloudLayer can be overblown if desired.
float CloudLayer::height |
Abstract number which controls the curvature and height of the dome mesh.
Point2F CloudLayer::texDirection[3] |
Controls the direction this slot scrolls.
float CloudLayer::texScale[3] |
Controls the texture repeat of this slot.
float CloudLayer::texSpeed[3] |
Controls the speed this slot scrolls.
filename CloudLayer::texture |
An RGBA texture which should contain normals and opacity (density).
float CloudLayer::windSpeed |
Overall scalar to texture scroll speed.