From fd535654369b31e1283a609ba8e8fcf0df42100b Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 25 Oct 2023 21:15:41 +0200 Subject: feat(engine): make camera look at a target position --- engine/src/renderer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/src/renderer') diff --git a/engine/src/renderer/mod.rs b/engine/src/renderer/mod.rs index 4dcc075..b9494b6 100644 --- a/engine/src/renderer/mod.rs +++ b/engine/src/renderer/mod.rs @@ -221,7 +221,7 @@ fn apply_transformation_matrices( .shader_program .set_uniform_matrix_4fv(cstr!("model"), &object.transform().as_matrix()); - let view = camera.transform().as_matrix(); + let view = camera.as_matrix(); object .renderable() -- cgit v1.2.3-18-g5258