DepthBias
Keywords: DepthBias, NVIDIA, NVIDIA Cg Toolkit, Cg Toolkit, Shader, Shader Programming, GPU Shader Programming, GPU Program

> ## Name

> DepthBias - 3D API depth bias

> ## Usage

> DepthBias = float(bias)

> ## Valid Enumerants

> bias: floating point value

> ## Description

> Specify the constant offset used to compute a depth offset for polygons. See the units parameter description on the OpenGL glPolygonOffset manual page for details. See the D3DRS_DEPTHBIAS render state description for DirectX 9.

> The standard reset callback sets the DepthBias state to float(0).

> ## Opengl Functionality Requirements

> 0penGL 1.1

> ## Direct3D Functionality Requirements

> DirectX 9

> ## See Also

> PolygonOffset, SlopScaleDepthBias