Water Class |
Namespace: DigitalRune.Graphics
The Water type exposes the following members.
Name | Description | |
---|---|---|
Clone |
Creates a new Water that is a clone (deep copy) of the current instance.
| |
CloneCore |
Makes the instance a clone (deep copy) of the specified Water.
| |
CreateInstanceCore |
When implemented in a derived class, creates a new instance of the Water
derived class.
| |
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 | |
---|---|---|
CausticsDistortion |
Gets or sets the caustics distortion.
| |
CausticsIntensity |
Gets or sets the maximal brightness of caustics.
| |
CausticsPower |
Gets or sets the sharpness of caustics
| |
CausticsSampleCount |
Gets or sets the number of samples used to compute caustics.
| |
CausticsSampleOffset |
Gets or sets the caustics sample offset.
| |
FoamColor |
Gets or sets the color of the foam.
| |
FoamCrestMax |
Gets or sets the wave crest height where foam is fully visible.
| |
FoamCrestMin |
Gets or sets the wave crest height where foam starts.
| |
FoamDistortion |
Gets or sets a factor indicating how much foam is distorted by waves.
| |
FoamMap |
Gets or sets the foam map.
| |
FoamMapScale |
Gets or sets the scale of foam map.
| |
FoamShoreIntersection |
Gets or sets the amount of foam where the water intersects geometry (e.g. the shore).
| |
FresnelBias |
Gets or sets the bias for the Fresnel effect approximation.
| |
FresnelPower |
Gets or sets the exponent for the Fresnel effect.
| |
FresnelScale |
Gets or sets the scale for the Fresnel effect approximation.
| |
IntersectionSoftness |
Gets or sets the intersection softness.
| |
NormalMap0 |
Gets or sets the first normal map.
| |
NormalMap0Scale |
Gets or sets the scale of the first normal map.
| |
NormalMap0Strength |
Gets or sets the strength of the first normal map.
| |
NormalMap0Velocity |
Gets or sets the scroll velocity of the first normal map.
| |
NormalMap1 |
Gets or sets the second normal map.
| |
NormalMap1Scale |
Gets or sets the scale of the second normal map.
| |
NormalMap1Strength |
Gets or sets the strength of the second normal map.
| |
NormalMap1Velocity |
Gets or sets the scroll velocity of the second normal map.
| |
ReflectionColor |
Gets or sets the tint color of the reflection.
| |
ReflectionDistortion |
Gets or sets the intensity of distortion effects for any reflections.
| |
RefractionColor |
Gets or sets the tint color of the refraction.
| |
RefractionDistortion |
Gets or sets the intensity of distortion effects for any refractions.
| |
ScatterColor |
Gets or sets the color/intensity of subsurface scattering effect.
| |
SpecularColor |
Gets or sets the tint color of the specular highlight.
| |
SpecularPower |
Gets or sets the specular exponent which defines the size of the specular highlight.
| |
UnderwaterFogDensity |
Gets or sets the underwater fog density, which defines how far you can see underwater.
| |
WaterColor |
Gets or sets the color of the water.
|
This class defines the appearance of a body of water. Two normal maps (NormalMap0 and NormalMap1) define the wave ripple structure on the water surface. The normal maps are scrolled over the water surface to create the sense of an animated water surface.
The water surface is rendered using a specular highlight, a reflection and the refracted scene under the water surface. Underwater is lit using light extinction and scattering, similar to exponential fog. UnderwaterFogDensity defines the extinction properties which create the water color.
Cloning: When the Water is cloned the normal map textures are not duplicated. The textures are copied by reference.