Skip to content

Documentation / @ripl/3d / VERTEX_FLOATS

Variable: VERTEX_FLOATS ​

const VERTEX_FLOATS: 12 = 12

Defined in: 3d/src/core/shape.ts:276

Floats per interleaved vertex: position(3), normal(3), colour(4), uv(2).

The GPU backend derives its vertex stride from this, so the two cannot disagree about the layout triangulateFacesFlat writes.