From 8566e63b26f9e7ee809c03394743a0576c499378 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 13 Jan 2024 19:45:54 +0000 Subject: We only need 3x3 matrix for model rotation spec --- game/vehicles/railVehicleClass.cpp | 2 +- game/vehicles/railVehicleClass.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'game/vehicles') diff --git a/game/vehicles/railVehicleClass.cpp b/game/vehicles/railVehicleClass.cpp index 3ca42db..5fd7580 100644 --- a/game/vehicles/railVehicleClass.cpp +++ b/game/vehicles/railVehicleClass.cpp @@ -43,7 +43,7 @@ RailVehicleClass::postLoad() bogies.back() ->configureVAO(instancesBogiesVAO.back()) .addAttribs(instances.bufferName(), 1); - static_assert(sizeof(LocationVertex) == 228UL); + static_assert(sizeof(LocationVertex) == 144UL); } void diff --git a/game/vehicles/railVehicleClass.h b/game/vehicles/railVehicleClass.h index 913feea..9d9d4c2 100644 --- a/game/vehicles/railVehicleClass.h +++ b/game/vehicles/railVehicleClass.h @@ -19,7 +19,7 @@ public: void shadows(const ShadowMapper & shadowMapper) const override; struct LocationVertex { - glm::mat4 body, front, back; + glm::mat3 body, front, back; GlobalPosition3D bodyPos, frontPos, backPos; }; -- cgit v1.2.3