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:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables:
step
normstep
- Coordinate Types:
-
Cross Scale Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables:
step
normstep
- Supports Variables From Inputs:
boxScaleField
- Coordinate Types:
-
Step Offset Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
vec4
- Supports Variables:
step
normstep
- Supports Variables From Inputs:
boxScaleField
crossScaleField
- Coordinate Types:
Variables
-
Step Index
: -
Normalized Step (0..1)
: