Jump to content
  • Advertisement
Sign in to follow this  
skta

Multiple render targets with independent depth buffers?

This topic is 3665 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!