Pass:setDepthOffset

Set the depth offset. This is a constant offset added to the depth value of pixels. It can be used to fix Z fighting when rendering decals or other nearly-overlapping objects.

Pass:setDepthOffset(offset, sloped)

Arguments

NameTypeDefaultDescription
offsetnumber0.0 The depth offset.
slopednumber0.0 The sloped depth offset.

Returns

Nothing

Notes

The default depth offset is zero for both values.

See also