CubeTexture.js 642 B

123456789101112131415161718192021222324252627282930313233
  1. import { Texture } from './Texture.js';
  2. import { CubeReflectionMapping } from '../constants.js';
  3. class CubeTexture extends Texture {
  4. constructor( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, colorSpace ) {
  5. images = images !== undefined ? images : [];
  6. mapping = mapping !== undefined ? mapping : CubeReflectionMapping;
  7. super( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, colorSpace );
  8. this.isCubeTexture = true;
  9. this.flipY = false;
  10. }
  11. get images() {
  12. return this.image;
  13. }
  14. set images( value ) {
  15. this.image = value;
  16. }
  17. }
  18. export { CubeTexture };
粤ICP备19079148号