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)
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)