Thursday, April 5, 2018

Menger Sponge in Brayns

Based on the very cool shader toy from Inigo Quilez, I ported the code to ISPC and exploited the vertorized units of the CPU to render the Menger sponge in real time:

As usual, the code is there:

More information on ray-marching and distance functions can be found on Inigo's website