Say I have a cubemap array and a shading program to render depth maps.

I want to iteratively render to a single cubemap in the cubemap array for each light.

In other words I want to select a...