Hacker News new | ask | show | jobs
by brandonpelfrey 3908 days ago
Yeah, this seemed kind of "unfortunate" when I started this project, but it still turned out to be an interesting/fun toy.

The issue is that when you compute where f(z) sends each point in the complex plane to, you would need to color in the pixel corresponding to that transformed point. f() is user-defined, so it could be a very weird function that could cover some portions of the image we're trying to draw but not others, etc. Moreover, even if I had some kind of procedure for determining which x's to sample so f(x) lay inside the image we're trying to draw, it's not amenable to GLSL. This is typically referred to scatter vs. gather-type operations.