From 664ddef8a3e728c09241888490b9a95eb9199557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Thu, 2 Mar 2017 21:34:57 +0100 Subject: [PATCH] Fix mvp matrix construction typo. Fix #229. --- examples/mvp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/mvp.rs b/examples/mvp.rs index 7a38c671..30d33971 100644 --- a/examples/mvp.rs +++ b/examples/mvp.rs @@ -18,7 +18,7 @@ fn main() { 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. - let model_view = model * view; + let model_view = view * model; // Convert everything to a `Matrix4` so that they can be combined. let mat_model_view = model_view.to_homogeneous();