RenderState.DepthBufferFunction Property

Gets or sets the comparison function for the depth-buffer test. The default is CompareFunction.LessEqual

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

public CompareFunction DepthBufferFunction { get; set; }

Property Value

Value of a CompareFunction that represents the comparison function to set or get.

The depth value of the pixel is compared to the depth-buffer value. If the depth value of the pixel passes the comparison function, the pixel is written.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions