combineFields

Combines float or vector fields using one of several mathematical operations.

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Operation

What operation to use to combine the field values.

Runtime Semi-Baked
  • Off: Only use the first input (or second depending on `Swaporder`).
  • Add: Add the fields.
  • Subtract: Subtract the second from the first.
  • Multiply: Multiply the fields.
  • Divide: Divide the first by the second.
  • Average: Average the fields.
  • Minimum: Use the smaller of the field values.
  • Maximum: Use the larger of the field values.
Swap Order

Swaps the two inputs. This is only relevant for some of the Operation values.

Runtime Baked
Optimize

Inputs

  • Field 1: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
  • Field 2: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: inputOp1
  • Field 3: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: inputOp[1-2]
  • Field 4: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: inputOp[1-3]
  • Field 5: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: inputOp[1-4]
  • Field 6: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: inputOp[1-5]
  • Field 7: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: inputOp[1-6]
  • Field 8: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: inputOp[1-7]