Sdílet prostřednictvím


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)

Syntax

public float MaxDepth { get; set; }

Property Value

The maximum depth of the clipping volume.

Remarks

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.

See Also

Reference

Viewport Structure
Viewport Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista