Spaces:
Running
Running
| 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 }; | |