This is a simple Ray Marching algorithm! I think… Correct me if I am wrong. I would recommend to use turbowarp.org for this project "Really fun! :D"
Me.