CompressedCubeTexture.js 448 B

12345678910111213141516171819
  1. import { CubeReflectionMapping } from '../constants.js';
  2. import { CompressedTexture } from './CompressedTexture.js';
  3. class CompressedCubeTexture extends CompressedTexture {
  4. constructor( images, format, type ) {
  5. super( undefined, images[ 0 ].width, images[ 0 ].height, format, type, CubeReflectionMapping );
  6. this.isCompressedCubeTexture = true;
  7. this.isCubeTexture = true;
  8. this.image = images;
  9. }
  10. }
  11. export { CompressedCubeTexture };
粤ICP备19079148号