Viewport.MaxDepth Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets or sets the maximum depth of the clip volume.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)
Syntax
'Declaration
Public Property MaxDepth As Single
public float MaxDepth { get; set; }
Property Value
Type: System.Single
The maximum depth of the clipping volume.
Remarks
MaxDepth together with MaxDepth, 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.
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.