Skip to main content Link Menu Expand (external link) Document Search Copy Copied
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

  • Enable:
  • Coord Type:
    • Auto:
    • 1D:
    • 2D:
    • 3D:
  • Axis:
    • X:
    • Y:
    • Z:
    • Distance From Origin:
  • Edge:
  • Reverse:
  • Enable Blend:
  • Blend:
  • Return Type:
    • Float:
    • Vector:
  • Low Value: Value used when below `Edge`
  • High Value: Value used when above `Edge`
  • Context Type:
    • Auto:
    • Context:
    • MaterialContext:
    • CameraContext:
    • LightContext:
    • RayContext:

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
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4
  • Edge Field: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Low Value Field: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4
  • High Value Field: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4