summaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-03-10 14:08:57 +1100
committerquou <quou@disroot.org>2025-03-10 14:09:08 +1100
commitf1e8cfc70fd6c2d4a1b67d8cf2ecdefb65206fe9 (patch)
tree4c6e99d8c8928f7c6b14b6347134aab417016583 /model.cpp
parenta7ef36bc519dff1700048ba8f21658daa138a81a (diff)
sort the forward drawlist front-to-back
Diffstat (limited to 'model.cpp')
-rw-r--r--model.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/model.cpp b/model.cpp
index cb9c23e..6aba19e 100644
--- a/model.cpp
+++ b/model.cpp
@@ -308,6 +308,7 @@ void Model_Instance::update() {
);
bound.encompass(bounds[i]);
}
+ centre = bound.min + bound.max * 0.5f;
}
void Model_Instance::update_cbuffers(Device* dev) {