Skip to main content Link Menu Expand (external link) Document Search Copy Copied
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

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

Variables

  • step:
  • normstep: