Export (0) Print
Expand All

Viewport.MaxDepth Property

Gets or sets the maximum depth of the clip volume.

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

public float MaxDepth { get; set; }

Property Value

The maximum depth of the clipping volume.

MaxDepth, together with MinDepth, specifies the range of depth values into which a scene is rendered. Most applications set this value to 1.0. Clipping is performed after the projection matrix is applied.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

© 2014 Microsoft