GL State Constants

These are used by the WebGLRenderer to set gl.cullFace and gl.frontFace states in the GPU.

Cull Face Modes

THREE.CullFaceNone

Disable face culling.

THREE.CullFaceBack

Cull back faces (default).

THREE.CullFaceFront

Cull front faces.

THREE.CullFaceFrontBack

Cull both front and back faces.

Front Face Direction

Set the winding order for polygons to either clockwise or counter-clockwise (default). THREE.FrontFaceDirectionCW THREE.FrontFaceDirectionCCW

Usage

var renderer = new THREE.WebGLRenderer(); renderer.setFaceCulling ( THREE.CullFaceBack, THREE.FrontFaceDirectionCCW ); //defaults

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]