UNPKG

cesium

Version:

CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.

18 lines (15 loc) 564 B
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);