From ef4fca980f59a0b258ea3a48e60a7359839a4bb0 Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 3 Jan 2025 10:02:38 +1100 Subject: orbit camera --- model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'model.cpp') 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; -- cgit v1.2.3-54-g00ecf