setPolygonOffset
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 factor used to create a variable depth offset for each triangle
Scale factor used to create a constant depth offset for each triangle
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 factor used to create a variable depth offset for each triangle
Scale factor used to create a constant depth offset for each triangle
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 factor used to create a variable depth offset for each triangle
Scale factor used to create a constant depth offset for each triangle
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 factor used to create a variable depth offset for each triangle
Scale factor used to create a constant depth offset for each triangle
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 factor used to create a variable depth offset for each triangle
Scale factor used to create a constant depth offset for each triangle