Home -> IStateGroupNode -> SetDepthBias
Description
The SetDepthBias method configures depth bias to offset generated depth values.
Important
A non-zero clamp value requires the DepthBiasClamp feature to be supported and enabled on the renderer.
Usage
void SetDepthBias(float constantFactor, float slopeFactor, float clamp = 0.0f);
Argument list
- constantFactor [float]
- The constant depth bias value applied to generated depth values.
- slopeFactor [float]
- The scale factor applied to the maximum depth slope of each primitive.
- clamp [float]
- The optional maximum absolute bias value. Use 0.0f to leave the bias unclamped.