次の方法で共有


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)

Syntax

public float DepthBias { get; set; }

Property Value

Depth bias for polygons.

Remarks

This 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.

See Also

Reference

RenderState Class
RenderState Members
SlopeScaleDepthBias
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista