Builtin Library
README.md
proc.ops.field
The field op family: per-element Field<T> values. Domain-reading fields (field.position, field.normal, field.attribute, field.index) take a Geometry; generators (field.constant, field.random, field.noise) and combinators (field.math, field.vector_math, field.mix, field.map_range, field.compare, field.combine, field.swizzle) take fields or constants. An op that states what it computes carries a proc.fieldc expression, so a consumer compiles the whole chain into one compute dispatch. RANDOM_WGSL and NOISE_WGSL are the WGSL the random and noise fields compile to. The flow pack (procPacks/flow.procPack) builds its curl, vortex, attractor, Worley and simplex fields on this module.
ops(fields, hash, noise) returns the family as a map of op id to op def; procPacks/field.procPack registers it. A graph calls one of its ops as g.op.<id>({ ... }) and a script as proc.ops.<family>.<op>(...); the procgen toolbox's describeNode answers each in full.
Ops: field.attribute, field.combine, field.compare, field.constant, field.index, field.map_range, field.math, field.mix, field.noise, field.normal, field.position, field.random, field.swizzle, field.vector_math.
Part of @builtin::systems.procgen.proc; required as @builtin::systems.procgen.proc.ops.field.