extend

extend

Keywords:
  • extend
  • stretch

Clamps coordinates around an SDF result, which causes their edges to be extended infinitely along each axis.

Parameters

  • Enable:
  • Center: The center position around which the coordinates are clamped.
  • Size: The size of the region outside which the coordinates are clamped. Within this area, the SDF will behave as it normally does.
  • Axes:
    • X:
    • Y:
    • Z:
    • XY:
    • YZ:
    • XZ:
    • XYZ:

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
  • Size Field: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4
  • Center Field: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4