MDN self-hosted library · e01.org

WebGLRenderingContext: cullFace() method

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
gl.enable(gl.CULL_FACE);
gl.cullFace(gl.FRONT_AND_BACK);
js
gl.getParameter(gl.CULL_FACE_MODE) === gl.FRONT_AND_BACK;
// true