1pass render to cube map using geometry shader

Hello,

I understand all the theory and concepts with what is meant to be done with the single pass cube mapping approach using a geometry shader, but I can’t figure out how to render to all 6 textures in the geometry shader… if that makes sense…

I’m not too familiar with FBO’s, but from what I read in this spec, they are required to do this.

Anyone have some sample code perchance that does this, or similar? I’ve been stuck on this for a few days now

Cheers

Basically you’ll want to attach the cubemap to an FBO, then bind the FBO and render into it… in the geometry shader, you’ll set gl_Layer to which cubemap face you want (0…5).

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.