Share via


RenderState.FogStart Property

Note

This property is available only when developing for Windows.

Gets or sets the depth at which pixel or vertex fog effects begin for linear fog mode. The default value is 0.0f.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public float FogStart { get; set; }

Property Value

Value that represents the beginning depth to set or get.

Remarks

Depth is specified in world space for vertex fog, and in either device space [0.0, 1.0] or world space for pixel fog. For pixel fog, these values are in device space when the system uses z for fog calculations, or in world space when the system uses eye-relative fog (w-fog).

See Also

Reference

RenderState Class
RenderState Members
FogEnd
FogEnable
FogColor
FogDensity
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Windows XP SP2, Windows Vista