Click or drag to resize
DigitalRuneLayeredCloudMap Class
Provides a cloud texture which is generated at runtime.
Inheritance Hierarchy

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public class LayeredCloudMap : CloudMap

The LayeredCloudMap type exposes the following members.

Constructors
  NameDescription
Public methodLayeredCloudMap
Initializes a new instance of the CloudMap class.
Top
Methods
  NameDescription
Public methodDispose
Releases all resources used by an instance of the CloudMap class.
(Inherited from CloudMap.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by an instance of the CloudMap class and optionally releases the managed resources.
(Overrides CloudMapDispose(Boolean).)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCoverage
Gets or sets the cloud coverage.
Public propertyDensity
Gets or sets the cloud density.
Public propertyLayers
Gets the (up to) 8 layers that define cloud density.
Public propertySeed
Gets or sets the random number generator seed.
Public propertySize
Gets or sets the size of the cloud map in texels.
Public propertyTexture
Gets the cloud texture.
(Inherited from CloudMap.)
Top
Remarks

A cloud map defines a cloud texture using (up to) 8 CloudMapLayers, which are sampled and added together. The resulting cloud texture is stored in Texture. A cloud map layer can contain a texture or random noise. In addition, layers can be animated. See CloudMapLayer for more information.

To disable a cloud map layer, simply set the array entry to or the DensityScale of the layer to 0.

The class LayeredCloudMap only defines the settings for generating a cloud texture and stores the result, but it does not automatically generate the cloud texture. A CloudMapRenderer must be used generate the cloud texture at runtime. A CloudMapRenderer is a scene node renderer which handles CloudLayerNodes. If a CloudLayerNode references a LayeredCloudMap, the renderer creates the cloud texture and stores the result in the Texture property.

See Also