A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/cullFace below:

WebGLRenderingContext: cullFace() method - Web APIs

WebGLRenderingContext: cullFace() method

Baseline Widely available

Note: This feature is available in Web Workers.

The WebGLRenderingContext.cullFace() method of the WebGL API specifies whether or not front- and/or back-facing polygons can be culled.

Syntax Parameters
mode

A GLenum specifying whether front- or back-facing polygons are candidates for culling. The default value is gl.BACK. Possible values are:

Return value

None (undefined).

Examples

Polygon culling is disabled by default. To enable or disable culling, use the enable() and disable() methods with the argument gl.CULL_FACE.

gl.enable(gl.CULL_FACE);
gl.cullFace(gl.FRONT_AND_BACK);

To check the current cull face mode, query the CULL_FACE_MODE constant.

gl.getParameter(gl.CULL_FACE_MODE) === gl.FRONT_AND_BACK;
// true
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4