LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Rendering::DepthStencilState::DepthBias Struct Reference

Describes the rasterizer depth bias. More...

#include <rendering_api.hpp>

Public Attributes

bool Enable { false }
 Specifies, if depth bias should be used (default: false). More...
 
Float Clamp { 0.f }
 Specifies the depth bias clamp (default: 0.0). More...
 
Float SlopeFactor { 0.f }
 Specifies the depth bias slope factor (default: 0.0). More...
 
Float ConstantFactor { 0.f }
 Specifies the depth bias constant factor (default: 0.0). More...
 

Detailed Description

Describes the rasterizer depth bias.

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 depthBiasClamp, depthBiasConstantFactor and depthBiasSlopeFactor are used to change the domain clamping, offset and steepness of the depth value distribution.

Member Data Documentation

◆ Clamp

Float LiteFX::Rendering::DepthStencilState::DepthBias::Clamp { 0.f }

Specifies the depth bias clamp (default: 0.0).

◆ ConstantFactor

Float LiteFX::Rendering::DepthStencilState::DepthBias::ConstantFactor { 0.f }

Specifies the depth bias constant factor (default: 0.0).

◆ Enable

bool LiteFX::Rendering::DepthStencilState::DepthBias::Enable { false }

Specifies, if depth bias should be used (default: false).

◆ SlopeFactor

Float LiteFX::Rendering::DepthStencilState::DepthBias::SlopeFactor { 0.f }

Specifies the depth bias slope factor (default: 0.0).