From 20b0c1a588371cfaa1ae7aedb670b4e0101c9e3d Mon Sep 17 00:00:00 2001 From: assiduous Date: Wed, 2 Dec 2020 17:53:34 -0800 Subject: GLTF Loader: using dynamic array of joint transform matrices instead of the fixed one --- AssetLoader/interface/GLTFLoader.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'AssetLoader/interface') diff --git a/AssetLoader/interface/GLTFLoader.hpp b/AssetLoader/interface/GLTFLoader.hpp index 2d10900..a9858e8 100644 --- a/AssetLoader/interface/GLTFLoader.hpp +++ b/AssetLoader/interface/GLTFLoader.hpp @@ -186,11 +186,8 @@ struct Mesh struct TransformData { - static constexpr Uint32 MaxNumJoints = 128u; - - float4x4 matrix; - float4x4 jointMatrix[MaxNumJoints] = {}; - int jointcount = 0; + float4x4 matrix; + std::vector jointMatrices; }; TransformData Transforms; -- cgit v1.2.3