UNPKG

awv3

Version:
25 lines (19 loc) 662 B
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; import * as THREE from 'three'; var _default = /*#__PURE__*/ function (_THREE$CubeTexture) { _inheritsLoose(_default, _THREE$CubeTexture); function _default(names, selector) { var _this; _this = _THREE$CubeTexture.call(this, names.map(function (item, index) { var image = document.createElementNS('http://www.w3.org/1999/xhtml', 'img'); image.src = selector(item); return image; })) || this; //this.minFilter = THREE.LinearFilter; _this.needsUpdate = true; return _this; } return _default; }(THREE.CubeTexture); export { _default as default };