summaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-03 10:02:38 +1100
committerquou <quou@disroot.org>2025-01-03 10:04:16 +1100
commitef4fca980f59a0b258ea3a48e60a7359839a4bb0 (patch)
tree04928df6d73118300e73b76bd5ab6e0abc2c923f /model.cpp
parentc22b015b9184cf468781b92015e2aed03cd9721a (diff)
orbit camera
Diffstat (limited to 'model.cpp')
-rw-r--r--model.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/model.cpp b/model.cpp
index 0b1dee7..4c5edcc 100644
--- a/model.cpp
+++ b/model.cpp
@@ -304,7 +304,7 @@ void Model_Instance::update_cbuffers(
0,
c * sizeof *mats
);
- m4f view_projection = cam.get_proj();
+ m4f view_projection = cam.get_proj() * cam.get_view();
for (i = 0; i < c; i++) {
Mat_Cbuffer& mat = mats[i];
Material& sm = *meshes[i].material;