stepField

stepField

A field that switches between two values at a threshold point.

This can be used to apply one color to the left of some point and another color on the right side of that point. It can also smooth out the transition between the two values.

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Coord Type
  • Auto:
  • 1D:
  • 2D:
  • 3D:
Axis Semi-Baked Semi-Baked
  • X:
  • Y:
  • Z:
  • Distance From Origin:
Edge Runtime Baked
Reverse Semi-Baked Semi-Baked
Enable Blend Semi-Baked Semi-Baked
Blend Runtime Baked
Return Type
  • Float:
  • Vector:
Low Value

Value used when below Edge

Runtime Baked
High Value

Value used when above Edge

Runtime Baked
Contexttype

Inputs

  • Coordinate Field: (optional) Optional field whose value is used instead of coordinates when checking which side of the threshold a point is on.
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
  • Edge Field: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables From Inputs: coordField
  • Low Value Field: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: coordField edgeField
  • High Value Field: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: coordField edgeField lowValue
  • Blend Amount Field: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables From Inputs: coordField edgeField lowValue highValue
  • Blend Function: (optional)
    • Coordinate Types: float
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables From Inputs: coordField edgeField lowValue highValue blendingField