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

Name Description Regular Handling Read-Only Handling
Enable
Center

The center point of the stretching.

Runtime Baked
Size

The distance that that parts are pushed apart from the origin.

Runtime Baked
Axes Runtime Semi-Baked
  • XYZ:
  • XY:
  • YZ:
  • XZ:
  • X:
  • Y:
  • Z:

Inputs

  • definition_in: (required)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4 Sdf Ray Light Particle
    • Supports Variables From Inputs: sizeField centerField
  • Size Field: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: vec4
  • Center Field: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: vec4
    • Supports Variables From Inputs: sizeField