The test-object is a signed distance function that is computed with ray-marching. When the ray hits an object the intersection-flag is set to 1 or otherwise set to 0. To speed up the process (since all of the computation is done on the native CPU) I implemented adaptive subsampling in screenspace. The following image shows that the subdivision works successfully:
Each of these blocks has four corners that consists of a hash structure, that by the time of writing contains: objectID, color and intersection-flag. The problem I have is that in my first successfull-test interpolating the subdivided blocks causes edge-artifacts or colors that does not align with the neighbouring blocks. I have tested the bilinear interpolator and it is working, but it does not seem to be working like expected, although some documents on this subject suggests that this is the right way to do it.
Any ideas how to fix this issue when the adaptive subsampler is based on a recursive algorithm to speed up the rendering?