CubeTexture.js 653 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, encoding ) {
  5. images = images !== undefined ? images : [];
  6. mapping = mapping !== undefined ? mapping : CubeReflectionMapping;
  7. super( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding );
  8. this.flipY = false;
  9. }
  10. get images() {
  11. return this.image;
  12. }
  13. set images( value ) {
  14. this.image = value;
  15. }
  16. }
  17. CubeTexture.prototype.isCubeTexture = true;
  18. export { CubeTexture };
粤ICP备19079148号