RenderStateManager.SlopeScaleDepthBias Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Retrieves or sets a value used to determine how much bias can be applied to coplanar primitives to reduce flimmering z-fighting.

Namespace:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)


Public Property SlopeScaleDepthBias As Single
Dim instance As RenderStateManager
Dim value As Single

value = instance.SlopeScaleDepthBias

instance.SlopeScaleDepthBias = value
public float SlopeScaleDepthBias { get; set; }
property float SlopeScaleDepthBias {
    float get ();
    void set (float value);
member SlopeScaleDepthBias : float32 with get, set

Property Value

Type: System.Single
Value that specifies the slope scale bias to apply. The default is zero.


Polygons that are coplanar in your 3-D space can be made to appear as if they are not coplanar by adding a z-bias to each one. An application can help ensure that coplanar polygons are rendered properly by adding a bias to the z-values that the system uses when rendering sets of coplanar polygons.

The following formula shows how to calculate the bias to be applied to coplanar primitives.

bias = (m * SlopeScaleDepthBias) + DepthBias

where m is the maximum depth slope of the triangle being rendered, defined as:

m = max(abs(delta z / delta x), abs(delta z / delta y))

.NET Framework Security


Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also


RenderStateManager Class

RenderStateManager Members

Microsoft.WindowsMobile.DirectX.Direct3D Namespace