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

mergeFields

Merges multiple vector fields, using different fields for each vector part.

This is similar to the Reorder TOP. Each of the 4 vector parts (xyzw) has its own source setting specifying which input its value comes from.

Inputs can either be float fields, or vector fields. If they are vector fields, then the corresponding part of that vector is used when creating the output. For example, if input 3 is a vector field, and Source Z is set to Input 3, the z in the result will be input1.z.

Parameters

  • Enable:
  • X Source:
    • Zero:
    • One:
    • Input 1:
    • Input 2:
    • Input 3:
    • Input 4:
  • Y Source:
    • Zero:
    • One:
    • Input 1:
    • Input 2:
    • Input 3:
    • Input 4:
  • Z Source:
    • Zero:
    • One:
    • Input 1:
    • Input 2:
    • Input 3:
    • Input 4:
  • W Source:
    • Zero:
    • One:
    • Input 1:
    • Input 2:
    • Input 3:
    • Input 4:

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