Fix mvp matrix construction typo.

Fix #229.
This commit is contained in:
Sébastien Crozet 2017-03-02 21:34:57 +01:00
parent b39bf2693a
commit 664ddef8a3
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ fn main() {
let projection = Perspective3::new(16.0 / 9.0, 3.14 / 2.0, 1.0, 1000.0); let projection = Perspective3::new(16.0 / 9.0, 3.14 / 2.0, 1.0, 1000.0);
// The combination of the model with the view is still an isometry. // The combination of the model with the view is still an isometry.
let model_view = model * view; let model_view = view * model;
// Convert everything to a `Matrix4` so that they can be combined. // Convert everything to a `Matrix4` so that they can be combined.
let mat_model_view = model_view.to_homogeneous(); let mat_model_view = model_view.to_homogeneous();