From f1e8cfc70fd6c2d4a1b67d8cf2ecdefb65206fe9 Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 10 Mar 2025 14:08:57 +1100 Subject: sort the forward drawlist front-to-back --- model.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'model.cpp') 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) { -- cgit v1.2.3-54-g00ecf