I'm back with another question: how does supersampling work?
I've got a fractal flame generator and I want to implement supersampling. This is what I've read about it:
Ok, so let's say that I want to draw a image that's 100x100. I'd normally make my histogram kind of like this:
float Histogram[100][100];But I want to do 3x supersampling, so I'll make it like this instead:
float Histogram[300][300];I go over the iterations and get the coordinates of a pixel, let's call them pixelX and pixelY. I decide what color the pixel is going to have. Now the pixel has to go in the histogram, I'm guessing at (pixelX * 3, pixelY * 3), right? Since I'm doing 3x supersampling?
But then what? I'm just putting pixel data at higher indexes in the histogram. How do I get 3x3 buckets to calculate the value of a pixel?