LiteFX 0.3.1.2022
Computer Graphics Engine
|
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... | |
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.
Float LiteFX::Rendering::DepthStencilState::DepthBias::Clamp { 0.f } |
Specifies the depth bias clamp (default: 0.0
).
Float LiteFX::Rendering::DepthStencilState::DepthBias::ConstantFactor { 0.f } |
Specifies the depth bias constant factor (default: 0.0
).
bool LiteFX::Rendering::DepthStencilState::DepthBias::Enable { false } |
Specifies, if depth bias should be used (default: false
).
Float LiteFX::Rendering::DepthStencilState::DepthBias::SlopeFactor { 0.f } |
Specifies the depth bias slope factor (default: 0.0
).