Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

proc.preview

Type-dispatched visualization of any proc value. visualize(value, name?, opts?) materializes the value into temporary scene entities and answers { entities, framing?, stats, cleanup }: a Geometry draws as a mesh, a population of points carrying a Mesh as one merged Geometry, bare points as a marker cube at every point, a Field<T> as a heatmap on a quad, a Material as a lit sphere wearing it, a Texture on a unit quad, and a Prefab or Bundle as the persisted bundle instantiated. cleanup() despawns everything it spawned. shows(value) and isDrawn(value) say whether it has a picture for a value. markedPoints(value) answers bare points the device holds as a population of marker boxes, which the translation layer draws as one instanced draw a play moves on the device. The procgen toolbox's preview tool drives capture on top of it.

Part of @builtin::systems.procgen.proc; reached as proc.preview.