draw all models from vector,

window cosmetic,
next:
texture,
calculate modelmatrix from parent
This commit is contained in:
Anakin
2016-12-31 12:31:38 +01:00
parent c96d05decb
commit ee8705f9e4
8 changed files with 76 additions and 23 deletions

View File

@@ -142,8 +142,8 @@ void OglViewerWidget::paintGL()
view.translate(m_translation);
view.rotate(m_rotation);
// Set modelview-projection matrix
m_program.setUniformValue("mvp_matrix", m_projection * view);
// Set view-projection matrix
m_program.setUniformValue("vp_matrix", m_projection * view);
// Draw cube geometry
m_dataEngine->drawGeometry(&m_program);