The WebGLRenderingContext.frontFace() method of the WebGL API specifies whether polygons are front- or back-facing by setting a winding orientation.
WebGLRenderingContext.frontFace()
external void frontFace(GLenum mode);