RenderStateManager.FogDensity Property

Language:

Retrieves or sets the fog density for pixel or vertex fog used in exponential fog modes.

Definition

Visual Basic Public Property FogDensity As Single
C# public float FogDensity { get; set; }
C++ public:
property float FogDensity {
        float get();
        void set(float value);
}
JScript public function get FogDensity() : float
public function set FogDensity(float);

Property Value

System.Single
Floating-point value that represents the fog density to set or retrieve.

This property is read/write. 

Remarks

Valid fog density values range from 0.0 through 1.0. The default value is 1.0.

See Also


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.