Volumetric sphere in a cube

Use the raymarching to draw a volumetric sphere in a cube.

Shader source :

https://pastebin.com/491FiyLg

 

More information :

Original shader from alan zucconi