Original Post
I've got my 6 cameras at the position of the object I'd like to environment map, but now I'm not sure how to render to a texture for a cubemap using FBOs. I've got rendering to a GL_TEXTURE_2D target working fine, but if I bind my the current frame buffer that's rendering to a Gl_TEXTURE_CUBE_MAP target, how do I set which cubemap target to my rendering camera?
For example, if I have a camera pointing along the positive Z axis, I want to render to the cubemap's GL_TEXTURE_CUBE_MAP_POSITIVE_Z sub-texture each frame. How would I do that?
For example, if I have a camera pointing along the positive Z axis, I want to render to the cubemap's GL_TEXTURE_CUBE_MAP_POSITIVE_Z sub-texture each frame. How would I do that?