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

Inputs

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