Jump to content
  • Advertisement
Sign in to follow this  

Multiple render targets with independent depth buffers?

This topic is 3835 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Let me put my problem first. I want to render the depthmap on the 6 faces of a cube for omnidirectional light. Instead of doing it in 6 passes ( 1 for each face), Is it possible to do it in a single pass of Shader? I tried FBO. Using FBO with multiple attachments and gl_FragData in a shader,MRT can be achieved. My understanding: Though I can attach 6 textures/renderbuffers to an FBO, there is only one depth buffer ( one DEPTH_ATTACHMENT_EXTENSION). All the color attachments are sharing a single depth buffer. Even though multiple FBOs can be created only one can be active at a time. Is it possible to create multiple render targets with independent depth buffers?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!