THREE.JS / COMPRESSED TEXTURE ARRAY

Compressed layers in motion.

The pinned source uses KTX2Loader plus a five-layer compressed array and samples one animated layer through TSL texture(...).depth(...). This route promotes the same boundary using a local UASTC KTX2 payload.

Initializing—

Detecting compressed-texture support and loading the local KTX2 fixture.

backend
—
texture
—
dimensions
—
format
—
layer
—
graph
—
sample
—
builds
—
speed
10.00
Selected source contractKTX2Loader → CompressedArrayTexture → texture(array, uv.flipY()).depth(depth)

Native WebGPU keeps the compressed array texture and animated depth uniform in the TSL graph. The WebGL2 lane uses the same promoted compressed array through a labeled sampler2DArray reference.

Derived from the pinned WebGPU compressed 2D Texture Array example. The local 2d_uastc.ktx2 payload is a 2D compressed fixture promoted into five repeated layers; the official spiritedaway.ktx2, exact page/pixel fidelity, device matrices, performance calibration, and whole-example fidelity remain separate.