constantSwitchField

field
constantSwitchField
RayTK
v0.42

Switches or blends between constant values based on an index field.

Parameters

Name Description Regular Handling Read-Only Handling
Return Type
  • Float:
  • Vector:
Extend Runtime Semi-Baked
  • Clamp:
  • Loop:
  • Zig-Zag:
Blend Indices Runtime Semi-Baked
Offset Runtime Baked
Count Runtime Baked
Value 1 Runtime Baked
Value 2 Runtime Baked
Value 3 Runtime Baked
Value 4 Runtime Baked
Value 5 Runtime Baked
Value 6 Runtime Baked
Value 7 Runtime Baked
Value 8 Runtime Baked

Inputs

  • Index Field: (required)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float