elongate
Keywords:
- elongate
- extend
- stretch
filter
elongate
RayTK
v0.42
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 | Which axes should be stretched. | Runtime | Semi-Baked |
|
Inputs
-
definition_in
: (required)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
vec4
Sdf
Volume
Ray
Light
Particle
- Supports Variables From Inputs:
sizeField
centerField
- Coordinate Types:
-
Size Field
: (optional)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
vec4
- Coordinate Types:
-
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
- Coordinate Types: