extendFn

function
extendFn
RayTK
v0.36

Defines the behavior of a function outside the normal expected range of coordinates.

This is similar to the Extend CHOP.

While primarily useful for 1D function operators, it also works for 2D and 3D operators, by applying the extend mode to each part of the coordinates.

Parameters

  • Enable:
  • Extend Mode:
    • Hold:
    • Cycle:
    • Mirror:
    • Default Value:
  • Range:
  • Default Value:

Inputs

  • definition_in: (required)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4 Sdf Ray Light Particle