mengerSpongeSdf
sdf
mengerSpongeSdf
RayTK
v0.42
Menger sponge fractal, made of boxes with holes cut through each axis.
Parameters
| Name | Description | Regular Handling | Read-Only Handling |
|---|---|---|---|
Translate | Moves the center of the shape. | Runtime | Baked |
Steps | Number of levels of detail. | Runtime | Baked |
Scale | Runtime | Baked | |
Box Scale | The scale of the boxes used at each step. | Runtime | Baked |
Cross Scale | The size of the holes cut through the boxes at each step. | Runtime | Baked |
Step Offset | Runtime | Baked |
Inputs
-
Box Scale Field: (optional)- Coordinate Types:
vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables:
stepnormstep
- Coordinate Types:
-
Cross Scale Field: (optional)- Coordinate Types:
vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables:
stepnormstep - Supports Variables From Inputs:
boxScaleField
- Coordinate Types:
-
Step Offset Field: (optional)- Coordinate Types:
vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
vec4 - Supports Variables:
stepnormstep - Supports Variables From Inputs:
boxScaleFieldcrossScaleField
- Coordinate Types:
Variables
-
Step Index: -
Normalized Step (0..1):