diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-06-28 03:17:27 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-06-28 03:17:27 +0000 |
| commit | a7639d5f5af4052850dc065f6255df3a180cd04c (patch) | |
| tree | a6db0a719a4664b5312bb4d3b927bf7dd491ec4f /AssetLoader/interface | |
| parent | Merge pull request #14 from dolphineye/user/dolphineye/imgui-separate-renderer (diff) | |
| download | DiligentTools-a7639d5f5af4052850dc065f6255df3a180cd04c.tar.gz DiligentTools-a7639d5f5af4052850dc065f6255df3a180cd04c.zip | |
GLTFLoader: updated bound box calculations
Diffstat (limited to 'AssetLoader/interface')
| -rw-r--r-- | AssetLoader/interface/GLTFLoader.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/AssetLoader/interface/GLTFLoader.hpp b/AssetLoader/interface/GLTFLoader.hpp index b9096d9..e3e9ed0 100644 --- a/AssetLoader/interface/GLTFLoader.hpp +++ b/AssetLoader/interface/GLTFLoader.hpp @@ -144,8 +144,8 @@ struct Mesh std::vector<std::unique_ptr<Primitive>> Primitives; BoundBox BB; - BoundBox AABB; - bool IsValidBB = false; + + bool IsValidBB = false; struct TransformData { @@ -256,7 +256,9 @@ struct Model RefCntAutoPtr<IBuffer> pIndexBuffer; Uint32 IndexCount = 0; - float4x4 aabb; + /// Transformation matrix that transforms unit cube [0,1]x[0,1]x[0,1] into + /// axis-aligned bounding box in model space. + float4x4 AABBTransform; std::vector<std::unique_ptr<Node>> Nodes; std::vector<Node*> LinearNodes; |
