mergeFields

combine
mergeFields
RayTK
v0.40

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

Name Description Regular Handling Read-Only Handling
Enable
X Source Baked Baked
  • Zero:
  • One:
  • Input 1:
  • Input 2:
  • Input 3:
  • Input 4:
Y Source Baked Baked
  • Zero:
  • One:
  • Input 1:
  • Input 2:
  • Input 3:
  • Input 4:
Z Source Baked Baked
  • Zero:
  • One:
  • Input 1:
  • Input 2:
  • Input 3:
  • Input 4:
W Source Baked Baked
  • Zero:
  • One:
  • Input 1:
  • Input 2:
  • Input 3:
  • Input 4:

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
  • Field 3: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
  • Field 4: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4