Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

normals

Welding coincident points and smoothing the normals that shading reads.

The definitions live in proc.ops.normals; this pack is what puts them in the op registry, so procgen.searchNodes("", { pack = "normals" }) lists the family and procgen.describeNode("op.<id>") describes any one of them.

Ops

  • geometry.weld — Merge vertices closer than distance into one, reindex the triangles onto the survivors, and drop the vertices no triangle reaches — the shared topology a smooth shading normal is averaged across
  • geometry.smooth_normals — Recompute shading normals with a crease angle: faces meeting within it share an averaged normal, faces beyond it split the vertex so the edge stays hard