Share

Combine fields

You can create complex effects by combining fields like noises and shapes in a variety of ways.

Basic nodes

Many of the basic math and other nodes are compatible with field inputs. The value of the resulting field at any position is the result of combining the values of the input fields at that position.

If a compound is composed solely of basic nodes that work with fields, then the compound will also work with fields.

The following nodes work with both scalar and vector fields:

  • absolute_value
  • add
  • clamp
  • divide
  • lerp
  • max
  • min
  • multiply
  • negate
  • power
  • subtract

In addition, you can use scalar fields with the following nodes:

  • exponential
  • scalar_to_vector3

You can also use vector fields with the following:

  • cross
  • dot
  • length
  • length_squared
  • vector3_to_scalar

Conditional fields

The switch_fields node acts like an if node for fields. It returns one of two fields, depending on the value of the input condition scalar field.

  • Where condition is positive, it returns true_case.
  • Where it is 0 or negative, it returns false_case.

In addition, mask_field is useful to create a multiplier to mask effects in complex fields. It returns a field whose value is 1 wherever its input is positive, and 0 everywhere else.

Was this information helpful?