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

> ## Name

> PolygonOffset - 3D API polygon offset

> ## Usage

> PolygonOffset = float2(factor, units)

> ## Valid Enumerants

> factor, units: floating point values

> ## Description

> Specify the scale factor and constant used to compute a depth offset for polygons. See the OpenGL glPolygonOffset manual page for details.

> The standard reset callback sets the PolygonOffset state to float2(0, 0).

> ## Opengl Functionality Requirements

> OpenGL 1.0

> ## Direct3D Functionality Requirements

> Not applicable.

> ## See Also

> SlopScaleDepthBias, PolygonOffsetFillEnable, PolygonOffsetLineEnable, PolygonOffsetPointEnable