Pass:setDepthOffset
EditSet 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
Name | Type | Default | Description |
offset | number | 0.0 | The depth offset. |
sloped | number | 0.0 | The sloped depth offset. |
Returns
Nothing
Notes
The default depth offset is zero for both values.
See also
Pass:setDepthTest
Pass:setDepthWrite
Pass