RenderStateManager.FogDensity Property (Microsoft.DirectX.Direct3D)

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


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

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

This property is read/write. 


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

See Also