12.07.2015 Views

Lecture notes - FreeDesktop.Org

Lecture notes - FreeDesktop.Org

Lecture notes - FreeDesktop.Org

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

Shadow Volumes – Z-Pass1. Disable depth and color writes2. Configure stencil operation:­ GL_INCR_WRAP on depth pass front-faces­ GL_DECR_WRAP on depth pass back-faces­ GL_KEEP for all other cases3. Draw shadow volumes⇨ Why use GL_INCR_WRAP and GL_DECR_WRAPinstead of GL_INCR and GL_DECR?­ Otherwise, if there are more than 2 n increments beforea decrement, the count will be wrong© Copyright Ian D. Romanick 2009, 2011 9-February-2011

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

Saved successfully!

Ooh no, something went wrong!