Lab 09: December 4, 2018

Overview

Today's lab is to test when the painters algorithm needs to be used.

Tasks

No code is provided this lab.

Your task is to render two camera facing quads that spin around eachother (so that their view obscures eachother) as they rotate.
Once you have two rotating quads, if you don't have depth testing working, you'll notice render problems. You'll need to enable depth test/writes.
You then need to change the vertex colour to allow for semi-transparency by submitting an alpha value of 0.5 (if float colours) or 128.

Observe that nothing you do will allow the quads to render correctly. The final task (if you chose to do so), is to force the quads to render from back to front, implementing the painter's algorithm.

Note:
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);