THREE.JS / WEBGL2 CONTRACT
A volume can be an instance.
A VOX density chunk becomes a GLSL3 sampler3D and is raymarched through thousands of instanced boxes. The study keeps the source’s per-instance local-ray transform and depth write observable.
Initializing—
Preparing the deterministic VOX density chunks and instanced shader.
- path
- —
- chunks
- —
- instances
- —
- texture
- —
- draw calls
- —
- triangles
- —
- sample avg / p95
- —
The default preserves the official 50,000-instance WebGL2 shape. Deterministic local VOX chunks, controls, and sampling are contract evidence; the official menger.vox asset, exact page/pixel composition, broad device/performance matrix, and whole-example fidelity remain separate.
Pinned source: webgl_volume_instancing.html