Skip to main content Link Menu Expand (external link) Document Search Copy Copied

combineFields

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

Parameters

  • Enable:
  • Operation: What operation to use to combine the field values.
    • 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.
  • Optimize:

Inputs

  • definition_in_1: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4
  • definition_in_2: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4
  • definition_in_3: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4
  • definition_in_4: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4
  • definition_in_5: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4
  • definition_in_6: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4
  • definition_in_7: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4
  • definition_in_8: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4