Skip to content

Multiple fragment shader outputs #2427

Answered by pezcode
Kartoffelsaft asked this question in Q&A
Discussion options

You must be logged in to vote

You need to add multiple attachments to a framebuffer, not use multiple framebuffers. Check out the deferred example:

bgfx::Attachment gbufferAt[3];

https://github.com/bkaradzic/bgfx/blob/master/examples/21-deferred/fs_deferred_geom.sc#L29

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kartoffelsaft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants