WEBGL 2 STUDY / ATTRIBUTE-FREE GEOMETRY

The vertex ID can be the data.

With GLSL3, an empty BufferGeometry can still draw a field of triangles: the draw range supplies the vertex count, while gl_VertexID deterministically derives each position and color in a RawShaderMaterial.

Preparing study—

Creating an attribute-free draw range…

The official shader’s deterministic hash is retained, while the page’s raw example shell is replaced with this study HUD. There are no CPU position/color attributes and no asset or pixel-parity claim.

THREE.JS FOUNDATIONS / LET THE VERTEX ID DRAW