Struct DepthBias

Defines how a polygon can be offset (mainly to avoid shadow artifacts). Given m as maximum depth slope of the triangle and r as implementation defined minimal resolvable difference, the offset of the triangle is defined as follow: o = m * slopeFactor + r * constantFactor If clamp == 0f, o is used directly as effective offset. If clamp > 0f, the effective offset is min(o, clamp) If clamp < 0f, the effective offset is max(o, clamp)

struct DepthBias ;

Fields

NameTypeDescription
clamp floatClamps the effective offset to a particular value
constantFactor floatFactor multiplied by the minimal resolvable difference of the depth buffer
slopeFactor floatFactor multiplied by the maximum depth slope of the polygon.