Share via


RenderStateManager.FogDensity Property (Microsoft.DirectX.Direct3D)

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