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.

20 lines
482 B
JavaScript

import WebGLConstants from "../Core/WebGLConstants.js";
/**
* @private
*/
var TextureWrap = {
CLAMP_TO_EDGE: WebGLConstants.CLAMP_TO_EDGE,
REPEAT: WebGLConstants.REPEAT,
MIRRORED_REPEAT: WebGLConstants.MIRRORED_REPEAT,
validate: function (textureWrap) {
return (
textureWrap === TextureWrap.CLAMP_TO_EDGE ||
textureWrap === TextureWrap.REPEAT ||
textureWrap === TextureWrap.MIRRORED_REPEAT
);
},
};
export default Object.freeze(TextureWrap);