Note: This feature is available in Web Workers.
The WebGLRenderingContext.frontFace() method of the WebGL API specifies whether polygons are front- or back-facing by setting a winding orientation.
frontFace(mode)modeA GLenum type winding orientation. The default value is gl.CCW. Possible values:
gl.CW: Clock-wise winding.gl.CCW: Counter-clock-wise winding.None (undefined).
gl.frontFace(gl.CW);