THREE.JS / FOUNDATIONS 85

Compressed data can become a target.

One universal KTX2 payload becomes an array and a cube, while the official render-target path writes the same layer-addressable shape.

Initializing —

Preparing compressed payloads and layered targets.

Backend
—
KTX2
—
Target depth
—
Draw calls
—
CompressedArrayTextureKTX2 layers

Per-mip compressed bytes are packed across four depth layers.

Shape
—
Mips
—
Flip Y
—
Updates
0
CompressedCubeTexturesix faces

Six compressed face textures share cube reflection mapping.

Faces
—
Shape
—
Flip Y
—
Mapping
—
RenderTarget arraylayer writes

A depth option turns a color attachment into a 2D array target.

Shape
—
Class
—
Texture
—
Writes
0
RenderTarget3Dvolume writes

Each selected layer is rendered into a 3D attachment and sampled back.

Shape
—
Class
—
Texture
—
Writes
0
Target controls
Layered lifecycle
KTX2→array/cube→setRenderTarget(layer)→sample

The initial pass writes every target layer from a deterministic array source.

Drag to orbit · rewrite a layer · mark compressed bytes for a partial upload

Previous: texture payloads →
LAB 85 / TEXTURE TARGETS