web api instance method
WebGLRenderingContext: frontFace() method
Available in workers
The WebGLRenderingContext.frontFace() method of the WebGL API specifies whether polygons are
front- or back-facing by setting a winding orientation.
Syntax
frontFace(mode)
Parameters
mode- : A GLenum type winding orientation.
The default value is
gl.CCW. Possible values:gl.CW: Clock-wise winding.gl.CCW: Counter-clock-wise winding.
- : A GLenum type winding orientation.
The default value is
Return value
None (undefined).
Examples
gl.frontFace(gl.CW);
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.