mengerSpongeSdf

mengerSpongeSdf

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
  • Cross Scale Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Step Offset Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4

Variables

  • step:
  • normstep: