LAB / INDEXED INSTANCING

One box. Thousands of matrices.

The box’s position and UV channels share a stride-eight Float32 record. One indexed topology is drawn many times while the per-instance matrix buffer changes every frame.

Preparing instanced geometry—
Creating indexed interleaved vertex data…

Pause to freeze the matrix buffer, then rebuild to recreate the indexed batch. This route is intentionally WebGL2: it isolates the official example’s instancing contract.

THREE.JS FOUNDATIONS / INDEXED INSTANCING