Skip to content

Instantly share code, notes, and snippets.

@callandekeijzer
callandekeijzer / Mandelbulb
Last active April 4, 2018 20:22
3D mandelbulb generated by VEX code in houdini
//---Functions---
/*
r = sqrt(x*x + y*y + z*z )
theta = atan2(sqrt(x*x + y*y) , z)
phi = atan2(y,x)
newx = r^n * sin(theta*n) * cos(phi*n)
newy = r^n * sin(theta*n) * sin(phi*n)