Function setDepthBias
Synopsis
#include <Source/Falcor/Core/API/RasterizerState.h>
Desc & setDepthBias(int32_t depthBias, float slopeScaledBias)
Description
Set the depth-bias. The depth bias is calculated as bias = (float)depthBias * r + slopeScaledBias * maxDepthSlope
where r is the minimum representable value in the depth buffer and maxDepthSlope is the maximum of the horizontal and vertical slopes of the depth value in the pixel.
See the DX documentation for depth bias explanation.
Source
Lines 83-83 in Source/Falcor/Core/API/RasterizerState.h.
Desc& setDepthBias(int32_t depthBias, float slopeScaledBias) { mSlopeScaledDepthBias = slopeScaledBias; mDepthBias = depthBias; return *this; }