linearClone
filter
linearClone
RayTK
v0.42
Repeats an SDF along a line, combining the results.
Note that this multiplies the work of the input for each clone, meaning that 4 clones means 4x the work of whatever is connected to the input.
The modulo1D
can be a cheaper alternative to linearClone
though it comes with limitations.
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Enable | |||
Count | The number of copies. The performance cost of the input is multiplied by this number. | Runtime | Baked |
Translate 1 | Position of the start of the line of clones. | Runtime | Baked |
Translate 2 | Position of the end of the line of clones. | Runtime | Baked |
Merge Type | How to merge the copies. | Semi-Baked | Semi-Baked |
| |||
Merge Radius | The amount of smoothing to apply when merging copies. | ||
Merge Number | |||
Merge Offset | |||
Iteration Type | Whether and how to expose iteration values to upstream operators. | Semi-Baked | Semi-Baked |
|
Inputs
-
definition_in
: (required)- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
Sdf
- Supports Variables:
index
normindex
- Coordinate Types:
-
Blend Radius Field
: (required)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables:
index
normindex
- Coordinate Types:
Variables
-
Index
: -
Normalized Index (0..1)
: