SPARK  0.1.0
A general purpose game engine written in C++.
Loading...
Searching...
No Matches
spark::render::DepthStencilState::DepthBias Struct Reference

Describes the rasterizer depth bias. More...

#include <DepthStencilState.h>

Public Attributes

bool enable = false
 Specifies, if depth bias should be used (default: false).
 
float clamp = 0.f
 Specifies the depth bias clamp (default: 0.0).
 
float slopeFactor = 0.f
 Specifies the depth bias slope factor (default: 0.0).
 
float constantFactor = 0.f
 Specifies the depth bias constant factor (default: 0.0).
 

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.