crossFn
function
crossFn
RayTK
v0.42
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:
floatvec2vec3vec4 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
floatvec4
- Coordinate Types:
-
Function 2: (required)- Coordinate Types:
floatvec2vec3vec4 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
floatvec4 - Supports Variables From Inputs:
inputOp1
- Coordinate Types:
-
Blending Function: (optional) Function used to get the mix value used to blend between the first two inputs.- Coordinate Types:
floatvec2vec3vec4 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
floatvec4 - Supports Variables From Inputs:
inputOp[1-2]
- Coordinate Types: