Modern browsers can compute fractals quickly using the GPU because a WebGL fragment shader can operate on every pixel simultaneously. For each pixel, the shader maps the screen coordinates to the complex plane and iterates the equation until the value escapes. And all the pixel calculations are then done in parallel.
Don’t these things take like ages to compute? how is it doing this so quickly in a web browser? This is insanely cool
Modern browsers can compute fractals quickly using the GPU because a WebGL fragment shader can operate on every pixel simultaneously. For each pixel, the shader maps the screen coordinates to the complex plane and iterates the equation until the value escapes. And all the pixel calculations are then done in parallel.
I guess computers are that much more powerful now.
yeah that too