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

constantSwitchField

beta

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

Parameters

  • Return Type:
    • Float:
    • Vector:
  • Extend:
    • Clamp:
    • Loop:
    • Zig-Zag:
  • Blend Indices:
  • Offset:
  • Count:
  • Value 1:
  • Value 2:
  • Value 3:
  • Value 4:
  • Value 5:
  • Value 6:
  • Value 7:
  • Value 8:

Inputs

  • definition_in: (required)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext
    • Return Types: float