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…
- instances
- —
- vertex stride
- —
- index type
- —
- matrix v.
- —
- draw calls
- —
- frame rate
- —
position: Float32 × 3 @ 0uv: Float32 × 2 @ 4 / index: Uint16
Instanced interleaved study failed.The renderer could not initialize.
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