Main   Class List   Namespace List   Wiki

CloudLayer Class Reference
[Atmosphere]

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

Inheritance diagram for CloudLayer:
Inheritance graph
[legend]

List of all members.

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

Base cloud color before lighting.

Fraction of sky covered by clouds 0-1.

Brightness scale so CloudLayer can be overblown if desired.

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

bool CloudLayer::isRenderable [static]

Disables rendering of all instances of this type.

Reimplemented from SceneObject.

bool CloudLayer::isSelectable [static]

Disables selection of all instances of this type.

Reimplemented from SceneObject.

Controls the direction this slot scrolls.

Controls the texture repeat of this slot.

Controls the speed this slot scrolls.

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

Overall scalar to texture scroll speed.



Copyright © GarageGames, LLC. All Rights Reserved.