diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-12-03 01:53:34 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-12-03 01:53:34 +0000 |
| commit | 20b0c1a588371cfaa1ae7aedb670b4e0101c9e3d (patch) | |
| tree | 0e4303a6998c16442bfb6434a277159699df22af /AssetLoader/interface | |
| parent | GLTF Loader: switched to using texture arrays (diff) | |
| download | DiligentTools-20b0c1a588371cfaa1ae7aedb670b4e0101c9e3d.tar.gz DiligentTools-20b0c1a588371cfaa1ae7aedb670b4e0101c9e3d.zip | |
GLTF Loader: using dynamic array of joint transform matrices instead of the fixed one
Diffstat (limited to 'AssetLoader/interface')
| -rw-r--r-- | AssetLoader/interface/GLTFLoader.hpp | 7 |
1 files changed, 2 insertions, 5 deletions
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<float4x4> jointMatrices; }; TransformData Transforms; |
