This is some example code that can be useful for bending cube maps to less conventional uses. Specifically, offcenter projection, to allow you to increase the sample density in one direction.