Skip to content

LiteFX::Rendering::DepthStencilState::DepthBias

Describes the rasterizer depth bias.

Synopsis

Declared in <litefx/rendering_api.hpp>

struct DepthBias;

Description

The depth bias can be used to alter the depth value function, i.e. how the values within the depth buffer are distributed. By default, the depth buffer uses an exponential function scale to increase precision for closer objects. The values provided with DepthBias::Clamp, DepthBias::ConstantFactor and DepthBias::SlopeFactor are used to change the domain clamping, offset and steepness of the depth value distribution.

Data Members

NameDescription
Clamp Specifies the depth bias clamp (default: 0.0).
ConstantFactor Specifies the depth bias constant factor (default: 0.0).
Enable Specifies, if depth bias should be used (default: false).
SlopeFactor Specifies the depth bias slope factor (default: 0.0).