iteratedTransform
filter
iteratedTransform
RayTK
v0.42
Performs a transform multiple times, optionally reflecting across axes in between the steps.
This can be used to create KIFS fractals (kaleidoscopic iterated function systems).
Parameters
| Name | Description | Regular Handling | Read-Only Handling |
|---|---|---|---|
Enable | |||
Iterations | |||
Reflect Mode | Runtime | Baked | |
| |||
Enable Translate | |||
Enable Rotate | |||
Enable Scale | |||
Enable Pivot | |||
Translate | |||
Rotate XYZ | |||
Scale | |||
Uniform Scale | |||
Pivot | |||
Transform Order | |||
| |||
Rotate Order | |||
| |||
Scale Type | |||
| |||
Custom Code | |||
Float Param 1 | |||
Float Param 2 | |||
Float Param 3 | |||
Float Param 4 | |||
Vec Param 1 | |||
Vec Param 2 | |||
Vec Param 3 | |||
Vec Param 4 | |||
Iteration Type | |||
| |||
Enable Accumulate | |||
Combine | The type of combination operation to perform. | ||
| |||
Swap Inputs | Swaps the order of the inputs. This is only relevant for “diff” modes. | ||
Blend Radius | The size of the blending region. | ||
Blend Number | For stair and column modes, this controls how many steps are used in the blending regions. | ||
Blend Offset | |||
Inputs
-
definition_in: (required)- Coordinate Types:
vec2vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
floatvec4Sdf - Supports Variables:
stepnormstep
- Coordinate Types:
-
Rotate Field: (optional) Optional field used to control rotation. The field is evaluated before each iteration, and the resulting value is added to the `Rotate` parameter. If the field uses 2D/3D coordinates, the current position is used. If the field uses 1D coordinates, it is passed `i / (n-1)`, where `i` is the loop iteration, and `n` is the total number of iterations.- Coordinate Types:
vec2vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
vec4 - Supports Variables:
stepnormstep
- Coordinate Types:
-
Translate Field: (optional)- Coordinate Types:
vec2vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
vec4 - Supports Variables:
stepnormstep
- Coordinate Types:
-
Scale Field: (optional)- Coordinate Types:
vec2vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
floatvec4 - Supports Variables:
stepnormstep
- Coordinate Types:
-
Custom Transform Field: (optional)- Coordinate Types:
vec2vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
floatvec4 - Supports Variables:
stepnormstep
- Coordinate Types:
Variables
-
Step Index: -
Normalized Step (0..1):