TextureWrap.js 484 B

12345678910111213141516171819
  1. import WebGLConstants from "../Core/WebGLConstants.js";
  2. /**
  3. * @private
  4. */
  5. const TextureWrap = {
  6. CLAMP_TO_EDGE: WebGLConstants.CLAMP_TO_EDGE,
  7. REPEAT: WebGLConstants.REPEAT,
  8. MIRRORED_REPEAT: WebGLConstants.MIRRORED_REPEAT,
  9. validate: function (textureWrap) {
  10. return (
  11. textureWrap === TextureWrap.CLAMP_TO_EDGE ||
  12. textureWrap === TextureWrap.REPEAT ||
  13. textureWrap === TextureWrap.MIRRORED_REPEAT
  14. );
  15. },
  16. };
  17. export default Object.freeze(TextureWrap);