summaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
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;