01.12.2014 Views

Lecture slides - FreeDesktop.Org

Lecture slides - FreeDesktop.Org

Lecture slides - FreeDesktop.Org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MRT – Setting Draw Buffers<br />

⇨ Connect attachments with shader outputs:<br />

void glDrawBuffers(GLsizei n,<br />

const GLenum *bufs);<br />

­ bufs gives a list of attachments points to connect, in<br />

the specified order, with shader outputs<br />

­ Shader output 0 gets the first listed attachment, output 1 gets<br />

the second, etc.<br />

­ Maximum number of outputs queryable with<br />

GL_MAX_DRAW_BUFFERS<br />

8-December-2010<br />

© Copyright Ian D. Romanick 2009, 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!