Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite8beb5604c

README.md

field.substitute

A field read at another point.

Every reference to the element's position inside field stands for position (fieldc.withPosition), so a warp composes with every field written over the position and the whole chain stays one expression. The element's position is one leaf: g.element.P, g.element.point.P and an unwired field.position() are it, and so is the position field.simplex, field.worley, field.curl and grid.cell_index read when their own position is unwired, so each of them is read at position here.

Inputs

  • field (Any). The chain, written over the position leaf g.element.P.
  • position (Any). The Vec3 field the position stands for.

Outputs

  • field: the chain, read at position.