| LayeredCloudMap Class |
Namespace: DigitalRune.Graphics
The LayeredCloudMap type exposes the following members.
| Name | Description | |
|---|---|---|
| LayeredCloudMap |
Initializes a new instance of the CloudMap class.
|
| Name | Description | |
|---|---|---|
| Dispose |
Releases all resources used by an instance of the CloudMap class.
(Inherited from CloudMap.) | |
| Dispose(Boolean) |
Releases the unmanaged resources used by an instance of the CloudMap class
and optionally releases the managed resources.
(Overrides CloudMapDispose(Boolean).) | |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| Coverage |
Gets or sets the cloud coverage.
| |
| Density |
Gets or sets the cloud density.
| |
| Layers |
Gets the (up to) 8 layers that define cloud density.
| |
| Seed |
Gets or sets the random number generator seed.
| |
| Size |
Gets or sets the size of the cloud map in texels.
| |
| Texture |
Gets the cloud texture.
(Inherited from CloudMap.) |
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.