Changed OpenGLExample to use MaterialDensityPair88 instead of MaterialDensityPair44.

Added material to shaders.
This commit is contained in:
David Williams
2014-05-24 21:09:26 +02:00
parent aace1f2e36
commit 07b9cf05fa
5 changed files with 36 additions and 12 deletions

View File

@ -99,6 +99,7 @@ void OpenGLWidget::initializeGL()
shader->bindAttributeLocation("position", 0);
shader->bindAttributeLocation("normal", 1);
shader->bindAttributeLocation("material", 2);
if (!shader->link())
{