Share via


RenderStateManager.DepthBias Property (Microsoft.DirectX.Direct3D)

Sets or retrieves the depth bias for polygons.

Definition

Visual Basic Public Property DepthBias As Single
C# public float DepthBias { get; set; }
C++ public:
property float DepthBias {
        float get();
        void set(float value);
}
JScript public function get DepthBias() : float
public function set DepthBias(float);

Property Value

System.Single
Depth bias for polygons.

This property is read/write. 

Remarks

The DepthBias property specifies an integer value in the range of 0 through 16 that causes polygons that are physically coplanar to appear separate.

Polygons with a high z-bias value appear in front of polygons with a low 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.