In the image above, I want to know how can I calculate the number of pixels of the rendered players' shadows that are inside the elephant outline.
An occlusion query is used to count the number of pixels occluded in the entire screen, but I want to restrict my count to just the number of pixels that end up inside the outline.