setPolygonOffset

actual fun setPolygonOffset(scale: Float, constant: Float)

Sets a polygon offset that will be applied to all renderables drawn with this material instance.

The value of the offset is scale * dz + r * constant, where dz is the change in depth relative to the screen area of the triangle, and r is the smallest value that is guaranteed to produce a resolvable offset for a given implementation. This offset is added before the depth test.

Parameters

scale

Scale factor used to create a variable depth offset for each triangle

constant

Scale factor used to create a constant depth offset for each triangle

expect fun setPolygonOffset(scale: Float, constant: Float)

Sets a polygon offset that will be applied to all renderables drawn with this material instance.

The value of the offset is scale * dz + r * constant, where dz is the change in depth relative to the screen area of the triangle, and r is the smallest value that is guaranteed to produce a resolvable offset for a given implementation. This offset is added before the depth test.

Parameters

scale

Scale factor used to create a variable depth offset for each triangle

constant

Scale factor used to create a constant depth offset for each triangle

actual fun setPolygonOffset(scale: Float, constant: Float)

Sets a polygon offset that will be applied to all renderables drawn with this material instance.

The value of the offset is scale * dz + r * constant, where dz is the change in depth relative to the screen area of the triangle, and r is the smallest value that is guaranteed to produce a resolvable offset for a given implementation. This offset is added before the depth test.

Parameters

scale

Scale factor used to create a variable depth offset for each triangle

constant

Scale factor used to create a constant depth offset for each triangle

actual fun setPolygonOffset(scale: Float, constant: Float)

Sets a polygon offset that will be applied to all renderables drawn with this material instance.

The value of the offset is scale * dz + r * constant, where dz is the change in depth relative to the screen area of the triangle, and r is the smallest value that is guaranteed to produce a resolvable offset for a given implementation. This offset is added before the depth test.

Parameters

scale

Scale factor used to create a variable depth offset for each triangle

constant

Scale factor used to create a constant depth offset for each triangle

actual fun setPolygonOffset(scale: Float, constant: Float)

Sets a polygon offset that will be applied to all renderables drawn with this material instance.

The value of the offset is scale * dz + r * constant, where dz is the change in depth relative to the screen area of the triangle, and r is the smallest value that is guaranteed to produce a resolvable offset for a given implementation. This offset is added before the depth test.

Parameters

scale

Scale factor used to create a variable depth offset for each triangle

constant

Scale factor used to create a constant depth offset for each triangle