draw all models from vector,
window cosmetic, next: texture, calculate modelmatrix from parent
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user