Menger sponge Fractal Pattern using Babylon

Menger Sponge is a 3D fractal made by iterative corrosion of a standard cube. The nth iteration of the Menger sponge is made up of 20^n smaller cubes. That means after the 7th iteration, there will be 1.28 Billion Cubes to show.

This puts a limit on how deep you can go while generating it in 3D since we have a limitation of computer memory to store that many cubes objects.

Anyways I did trickery to reach 7th iteration and this is the result. Online demo link is