123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <base href="../../" />
- <script src="list.js"></script>
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- <h1>GL State Constants</h1>
- These are used by the WebGLRenderer to set gl.cullFace and gl.frontFace states in the GPU.
- <h2>Cull Face Modes</h2>
- <code>
- THREE.CullFaceNone
- </code>
- <p>Disable face culling.</p>
- <code>
- THREE.CullFaceBack
- </code>
- <p>Cull back faces (default).</p>
- <code>
- THREE.CullFaceFront
- </code>
- <p>Cull front faces.</p>
- <code>
- THREE.CullFaceFrontBack
- </code>
- <p>Cull both front and back faces.</p>
- <h2>Front Face Direction</h2>
- Set the winding order for polygons to either clockwise or counter-clockwise (default).
- <code>
- THREE.FrontFaceDirectionCW
- THREE.FrontFaceDirectionCCW
- </code>
- <h2>Usage</h2>
- <code>
- var renderer = new THREE.WebGLRenderer();
- renderer.setFaceCulling ( THREE.CullFaceBack, THREE.FrontFaceDirectionCCW ); //defaults
- </code>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]
- </body>
- </html>
|