Buckets:
| import { CubeReflectionMapping } from '../constants.js'; | |
| import { CompressedTexture } from './CompressedTexture.js'; | |
| /** | |
| * Creates a cube texture based on data in compressed form. | |
| * | |
| * These texture are usually loaded with {@link CompressedTextureLoader}. | |
| * | |
| * @augments CompressedTexture | |
| */ | |
| class CompressedCubeTexture extends CompressedTexture { | |
| /** | |
| * Constructs a new compressed texture. | |
| * | |
| * @param {Array<CompressedTexture>} images - An array of compressed textures. | |
| * @param {number} [format=RGBAFormat] - The texture format. | |
| * @param {number} [type=UnsignedByteType] - The texture type. | |
| */ | |
| constructor( images, format, type ) { | |
| super( undefined, images[ 0 ].width, images[ 0 ].height, format, type, CubeReflectionMapping ); | |
| /** | |
| * This flag can be used for type testing. | |
| * | |
| * @type {boolean} | |
| * @readonly | |
| * @default true | |
| */ | |
| this.isCompressedCubeTexture = true; | |
| /** | |
| * This flag can be used for type testing. | |
| * | |
| * @type {boolean} | |
| * @readonly | |
| * @default true | |
| */ | |
| this.isCubeTexture = true; | |
| this.image = images; | |
| } | |
| } | |
| export { CompressedCubeTexture }; | |
Xet Storage Details
- Size:
- 1.12 kB
- Xet hash:
- d0f3f9c8f278d52b1f8685bccf13a4c46ef17ea1283dff0db5cdeca25ec59710
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.