Closed zpelgrims closed 2 years ago
also investigate if this:
if (y < 0 || y >= yres) continue; // edge fix
if (x < 0 || x >= xres) continue; // edge fix
produces the edge brightening around the frame.. the constant above should be different for these samples probably
area of a circle with radius of 2 is 12.57, which is very close to the constant of 12.5555 I matched it to.
is it too close to be a co inky dinky?
float inv_filter_samples = (1.0 / filter_width_half) / 12.5555; // figure this out so it doesn't break when filter width is not 2