Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit2e536ca9a9

README.md

proc.geometry

The geometry a mesh algorithm builds. new({ positions, indices, normals?, uvs? }) takes the flat arrays such an algorithm produces and returns the Geometry the whole system passes around (proc.substrate): four domains of columns, whose positions / indices / normals / uvs are a view derived from those columns. An algorithm writes and reads flat arrays, and what it hands on is a value a kernel can run over.

local tri = proc.geometry.new({ positions = { 0, 0, 0, 1, 0, 0, 0, 1, 0 }, indices = { 0, 1, 2 } })

Part of @builtin::systems.procgen.proc.