RenderStateManager.DepthBias Property

Language:

Note: This documentation is preliminary and is subject to change.

Sets or retrieves the depth bias for polygons.

Definition

Visual Basic .NET Public Property DepthBias As Single
C# public float DepthBias { get; set; }
Managed C++ public: __property float get_DepthBias();
public: __property void set_DepthBias(float);
JScript .NET 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.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.