PageSourceSearch

https://movimentoperpetuo.ca/wp-content/plugins/3d-scene-viewer/as…/3js/src/textures/CompressedCubeTexture.js

js movimentoperpetuo.ca collected 2026-10-07 00:48:42 UTC 1,123 bytes, 48 lines download raw bytes

vendor: 1,123 bytes, lines 1-48
1import { CubeReflectionMapping } from '../constants.js';
2import { CompressedTexture } from './CompressedTexture.js';
3
4/**
5 * Creates a cube texture based on data in compressed form.
6 *
7 * These texture are usually loaded with {@link CompressedTextureLoader}.
8 *
9 * @augments CompressedTexture
10 */
11class CompressedCubeTexture extends CompressedTexture {
12
13	/**
14	 * Constructs a new compressed texture.
15	 *
16	 * @param {Array<CompressedTexture>} images - An array of compressed textures.
17	 * @param {number} [format=RGBAFormat] - The texture format.
18	 * @param {number} [type=UnsignedByteType] - The texture type.
19	 */
20	constructor( images, format, type ) {
21
22		super( undefined, images[ 0 ].width, images[ 0 ].height, format, type, CubeReflectionMapping );
23
24		/**
25		 * This flag can be used for type testing.
26		 *
27		 * @type {boolean}
28		 * @readonly
29		 * @default true
30		 */
31		this.isCompressedCubeTexture = true;
32
33		/**
34		 * This flag can be used for type testing.
35		 *
36		 * @type {boolean}
37		 * @readonly
38		 * @default true
39		 */
40		this.isCubeTexture = true;
41
42		this.image = images;
43
44	}
45
46}
47
48export { CompressedCubeTexture };

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.