Changed OpenGLExample to use MaterialDensityPair88 instead of MaterialDensityPair44.
Added material to shaders.
This commit is contained in:
@ -99,6 +99,7 @@ void OpenGLWidget::initializeGL()
|
||||
|
||||
shader->bindAttributeLocation("position", 0);
|
||||
shader->bindAttributeLocation("normal", 1);
|
||||
shader->bindAttributeLocation("material", 2);
|
||||
|
||||
if (!shader->link())
|
||||
{
|
||||
|
Reference in New Issue
Block a user