summaryrefslogtreecommitdiff
path: root/engine/src/renderer/mod.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-10-25 21:15:41 +0200
committerHampusM <hampus@hampusmat.com>2023-10-25 21:16:10 +0200
commitfd535654369b31e1283a609ba8e8fcf0df42100b (patch)
tree2509bd71d835a4389ff7578dc6314d6019e31d01 /engine/src/renderer/mod.rs
parent0c0dc186b542bf6bdd7645ba091dc2a47a03fa97 (diff)
feat(engine): make camera look at a target position
Diffstat (limited to 'engine/src/renderer/mod.rs')
-rw-r--r--engine/src/renderer/mod.rs2
1 files changed, 1 insertions, 1 deletions
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()