Jump to content
  • Advertisement
Sign in to follow this  
htmlboss

Blitting of Depth Buffer produces black geometry

This topic is 671 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

I'm trying to combine a forward rendered skybox with deferred rendered geometry, but for some reason the geometry becomes black when I blit the depth buffer to the default framebuffer to render the skybox (otherwise the skybox draws over everything). Here are 2 photos since they're worth 2000 words  :P

 

Before blitting:

 

[attachment=34867:Untitled.png]

 

After blitting:

 

[attachment=34866:Untitled.png]

 

What could be the culprit? Blending? Wrong shader code?

Let me know if any code samples are needed. Thanks!  :D

 

I'm also planning to figure out what's with the massive performance drop between the two (11 ms vs 3 ms)...probably bad texture binding.

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.

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!