Gist 1cea47db296b24afb0772e2314185ace
✓ Published0🌍 Public
Aandybak
Last edited Aug 29, 2017
Created on Aug 29, 2017
This visualization renders a 3D Menger sponge fractal that morphs through successive recursive iterations. It uses a custom distance function defined in a Unity shader file (menger.cginc) to calculate the fractal’s geometry, with the iteration depth driven by `_Time.x` to animate the transformation. The scene is drawn using raymarching, a rendering approach that evaluates the distance function along each view ray to determine surface intersections, producing a continuously evolving solid fractal. The code relies on Unity’s shader pipeline and time-based input to cycle the sponge through levels of detail.
AI-generated description