You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
604 B
JavaScript
34 lines
604 B
JavaScript
import WebGLConstants from "../Core/WebGLConstants.js";
|
|
|
|
/**
|
|
* Determines which triangles, if any, are culled.
|
|
*
|
|
* @enum {Number}
|
|
*/
|
|
var CullFace = {
|
|
/**
|
|
* Front-facing triangles are culled.
|
|
*
|
|
* @type {Number}
|
|
* @constant
|
|
*/
|
|
FRONT: WebGLConstants.FRONT,
|
|
|
|
/**
|
|
* Back-facing triangles are culled.
|
|
*
|
|
* @type {Number}
|
|
* @constant
|
|
*/
|
|
BACK: WebGLConstants.BACK,
|
|
|
|
/**
|
|
* Both front-facing and back-facing triangles are culled.
|
|
*
|
|
* @type {Number}
|
|
* @constant
|
|
*/
|
|
FRONT_AND_BACK: WebGLConstants.FRONT_AND_BACK,
|
|
};
|
|
export default Object.freeze(CullFace);
|