elongate

elongate

Keywords:
  • elongate
  • extend
  • stretch

Stretches a shape by splitting it into pieces, moves them apart, and connects them.

For example, a capsule is an elongated version of a sphere.

It is based on code from Inigo Quilez. See example.

Parameters

  • Enable:
  • Center: The center point of the stretching.
  • Size: The distance that that parts are pushed apart from the origin.
  • Axes:
    • XYZ:
    • XY:
    • YZ:
    • XZ:
    • X:
    • Y:
    • Z:

Inputs

  • definition_in: (required)
    • Coordinate Types: vec2 vec3
    • 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