Jump to content

Recommended Posts

Posted

I suspect that there is an issue with cameras render order when using cubemap as a depth attachment.
The output from my demo project may vary depending on how lucky am I while executing it.

Normal (but one with a sharp eye may notice a frame with the floor and ceiling being lit wile the walls have already disappeared):
giphy.gif

Unlucky (highly visible issues on the wall):
giphy.gif

I can send out the project for debugging on request, but currently my theory is the following:
image.thumb.png.b87f857f53d7abfce28ec8a5e7b9d327.png

  • Like 1
  • Thanks 1
  • 3 weeks later...
Posted

While revisiting this issue in my head today, I have learned after a small research that a geometry shader allows to render into different texture layers with different projection matrices using gl_Layer.

May it actually worth putting additional overhead of geometry shader invocation in order to fit cubemap (or cubemap array) rendering into one pass? 

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...