Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

RenderState.DepthBias Property

Sets or retrieves the depth bias for polygons. The default value is 0.

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

public float DepthBias { get; set; }

Property Value

Depth bias for polygons.

This property specifies a value in the range of 0 through 16 (inclusive). This value is used to make polygons that are physically coplanar appear separate.

Polygons with a high z-bias value appear in front of polygons with a lower value, without requiring sorting for drawing order. For example, polygons with a value of 1 appear in front of polygons with a value of 0.

Xbox 360, Windows XP SP2, Windows Vista
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.