ComputeSharp icon indicating copy to clipboard operation
ComputeSharp copied to clipboard

Add Mandelbrot shader

Open kant2002 opened this issue 2 years ago • 3 comments

It does not perform that well on full screen, but I think that's much interesting sample with rich cultural background

image

kant2002 avatar Nov 16 '22 10:11 kant2002

Here's Paint.NET 5.0's Mandelbrot Fractal shader code -- it has some fun properties to experiment with. Feel free to port it over here to ComputeSharp. https://gist.github.com/rickbrew/479e5e3e7b1d8ba7b4e76fc1246bb229

image

rickbrew avatar Nov 27 '22 21:11 rickbrew

Obviously much better looking then mine. But at least I was able to better understand API by implementing things myself. What if I just borrow colors generation function? I think simpler version better for educational purposes. I hope Mandelbrot still popular enough to be easiest recognizable

kant2002 avatar Nov 27 '22 21:11 kant2002

What if I just borrow colors generation function?

Borrow whatever you want :)

rickbrew avatar Nov 28 '22 01:11 rickbrew

Closing this for now. The fact it can't run in realtime also makes it not really ideal for the sample app. We might reconsider porting the version from Paint.NET in the future perhaps as a unit test and sample for people to check out, I suppose. Thank you! 🙂

Sergio0694 avatar May 24 '24 09:05 Sergio0694