crossFn

Cross-fades between two input functions, either based on a parameter or on a third function.

A mix value of 0 is the first, 1 is the second. Values outside that range will linearly scale, as though the two input values are two points and a line extends off in the same direction on each end.

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Mix

Cross-fade between the first two inputs. This is not used if the third input is connected.

Runtime Baked

Inputs

  • Function 1: (required)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
  • Function 2: (required)
    • 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
  • Blending Function: (optional) Function used to get the mix value used to blend between the first two inputs.
    • 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]