diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-04-27 22:37:13 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-04-27 22:37:13 +0000 |
| commit | e5e1d5c3b22b155aa57f77eaf8cca91ecbe29d8e (patch) | |
| tree | 5e1bf701cbc4f95cdc2ab9ddc3e87cd78684894c /AssetLoader/src/GLTFLoader.cpp | |
| parent | Some updates to GLTF loader (diff) | |
| download | DiligentTools-e5e1d5c3b22b155aa57f77eaf8cca91ecbe29d8e.tar.gz DiligentTools-e5e1d5c3b22b155aa57f77eaf8cca91ecbe29d8e.zip | |
Minor update to GLTF loader
Diffstat (limited to 'AssetLoader/src/GLTFLoader.cpp')
| -rw-r--r-- | AssetLoader/src/GLTFLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AssetLoader/src/GLTFLoader.cpp b/AssetLoader/src/GLTFLoader.cpp index 893be19..c632e82 100644 --- a/AssetLoader/src/GLTFLoader.cpp +++ b/AssetLoader/src/GLTFLoader.cpp @@ -120,7 +120,7 @@ void Mesh::SetBoundingBox(const float3& min, const float3& max) float4x4 Node::LocalMatrix()const { - return float4x4::TranslationGL(Translation) * QuaternionToMatrix(Rotation) * float4x4::Scale(Scale) * Matrix; + return float4x4::TranslationGL(Translation) * Rotation.ToMatrix() * float4x4::Scale(Scale) * Matrix; } float4x4 Node::GetMatrix()const |
