Spaces:
Running
Running
File size: 639 Bytes
2b7aae2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import { Texture } from './Texture.js';
import { CubeReflectionMapping } from '../constants.js';
class CubeTexture extends Texture {
constructor(images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding) {
images = images !== undefined ? images : [];
mapping = mapping !== undefined ? mapping : CubeReflectionMapping;
super(images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding);
this.flipY = false;
}
get images() {
return this.image;
}
set images(value) {
this.image = value;
}
}
CubeTexture.prototype.isCubeTexture = true;
export { CubeTexture };
|