
224 II Rendering Techniques
IndexMap
Figure 16.5. Index storage: a red pixel in the IndexMap means that the first index of that
cell is set with the index of a proxy ranging from 0–255, yellow means the first two indices
are set.
the clipping algorithm so that each index in the IndexMap corresponds directly to
the index in the array.
16.4 The ShadowProxy-Enabled Fragment
Shader
The algorithm (see Listing 16.2) for determining whether a fragment needs shadow-
ing or additional coloring because of color bleeding is summarized as follows:
1. Calculate the index of the grid’s cell that contains the current fragment.
2. Fetch the indices of the proxies that