WebGLRenderingContext: frontFace() method

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.

Syntax

js
frontFace(mode)

Parameters

mode

A GLenum type winding orientation. The default value is gl.CCW. Possible values:

Return value

None (undefined).

Examples

js
gl.frontFace(gl.CW);

Specifications

See also