
4. Hi-Z Screen-Space Cone-Traced Reflections 159
Figure 4.8. The area of interest between the minimum and maximum depth plane of
the four pixels for which we calculate the visibility; basically, take the percentage of
empty volume.
We cannot rely on only the visibility buffer, though. We must know how much
our cone actually intersects the geometry as well, and for that we will utilize our
Hi-Z buffer. Our final weight will be the accumulated visibility multiplied by how
much our cone sphere is above, in between, or below the Hi-Z buffer.
The format for this pre-integration buffer is an 8 bit per channel texture that
gives 256 values to represent our visib ...