<sk-composite-field>

← prev index next →

Combines several fields into one by blending their weights — the field for masking, layering, and carving one field with another.

Remarks

This is a field that composes other fields, taking its place in the SpatialField family: like every field it turns where into how much — a scalar weight consumers read by #id (field="#id") — but instead of computing weight from geometry, it references two or more child fields and blends their weights into a single result. That makes it the way to build compound influence: mask a noise field by a falloff, union two shapes, or subtract one region from another.

Key attributes. fields is a space-separated list of the child fields to combine, each by #id; field-blend-modes is a parallel list of how to fold each one in — max (union, strongest wins), min (intersection), multiply (masking), add (accumulate, clamped), or subtract (erosion, clamped). The lists run in order: the first field seeds the result, so its blend mode is a placeholder that never applies; each later field combines with the accumulated weight. The result is itself a field, so it plugs into any field="#id" slot.

Related. It blends any fields — spatial shapes like sk-spherical-gradient-field, sk-noise-spatial-field, or even another composite. Typical consumers are a sk-color-map-source, a sk-tonemap, a sk-simple-point-constraint, or sk-field-constraint.

Serve these docs to run the live example. WebGPU needs a secure context — open this page via grunt serve rather than double-clicking the file. The Markup tab works from disk.

Attributes

AttributeTypeDefaultDescription
id <id> The element's unique identifier — the standard HTML global id attribute.
remap-curveanimatable <remap-curve> Optional curve that reshapes this composite field's combined output.
remap-phaseanimatable <number> 0 Horizontal remap phase — an animatable scalar that translates a present
fields <id-ref-list> (<id-ref>[,<id-ref>]*) "" The fields <id-ref-list> as a property. Reads / writes the
field-blend-modes <scalar-blend-mode-list> (<scalar-blend-mode>[,<scalar-blend-mode>]*) "" The companion field-blend-modes list as a property. Reads /