05.01.2015 Views

Lecture notes - FreeDesktop.Org

Lecture notes - FreeDesktop.Org

Lecture notes - 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.

Post-processing Effects<br />

⇨ May need to access many neighbor texels in the<br />

fragment shader<br />

­ Can calculate these coordinates in the fragment<br />

shader, but this uses valuable instructions<br />

­ Instead use all of the available varying slots and precalculate<br />

offset coordinates in the vertex shader<br />

­ Query GL_MAX_VARYING_FLOATS to determine how many<br />

slots are available<br />

20-May-2009<br />

© Copyright Ian D. Romanick 2009

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

Saved successfully!

Ooh no, something went wrong!