UNPKG

awv3

Version:
14 lines (12 loc) 430 B
import * as THREE from 'three'; export default class CubeTexture extends THREE.CubeTexture { constructor(names, selector) { super(names.map((item, index) => { const image = document.createElementNS('http://www.w3.org/1999/xhtml', 'img'); image.src = selector(item); return image; })); //this.minFilter = THREE.LinearFilter; this.needsUpdate = true; } }