polygonOffset method
The WebGLRenderingContext.polygonOffset()
method of the
WebGL API
specifies the scale factors and
units to calculate depth values.
The offset is added before the depth test is performed and before the value is written into the depth buffer.
Implementation
external void polygonOffset(
GLfloat factor,
GLfloat units,
);