
mengerSpongeSdf
sdf
mengerSpongeSdf
RayTK
v0.36
Menger sponge fractal, made of boxes with holes cut through each axis.
Parameters
-
Translate
: Moves the center of the shape. -
Steps
: Number of levels of detail. -
Scale
: -
Box Scale
: The scale of the boxes used at each step. -
Cross Scale
: The size of the holes cut through the boxes at each step. -
Step Offset
:
Inputs
-
Box Scale Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
- Coordinate Types:
-
Cross Scale Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
- Coordinate Types:
-
Step Offset Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
vec4
- Coordinate Types:
Variables
-
step
: -
normstep
: