summaryrefslogtreecommitdiffstats
path: root/AssetLoader/src/GLTFLoader.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-04-27 22:37:13 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-04-27 22:37:13 +0000
commite5e1d5c3b22b155aa57f77eaf8cca91ecbe29d8e (patch)
tree5e1bf701cbc4f95cdc2ab9ddc3e87cd78684894c /AssetLoader/src/GLTFLoader.cpp
parentSome updates to GLTF loader (diff)
downloadDiligentTools-e5e1d5c3b22b155aa57f77eaf8cca91ecbe29d8e.tar.gz
DiligentTools-e5e1d5c3b22b155aa57f77eaf8cca91ecbe29d8e.zip
Minor update to GLTF loader
Diffstat (limited to 'AssetLoader/src/GLTFLoader.cpp')
-rw-r--r--AssetLoader/src/GLTFLoader.cpp2
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