Ndk: Optimize coordinate system matrix concatenation

Since both matrix are affine


Former-commit-id: e2e35ad9af0183291b7345229f9af4425cb523fb
This commit is contained in:
Lynix
2015-09-19 15:13:00 +02:00
parent 67a9dc692a
commit ea3644ef44
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ namespace Ndk
NodeComponent& drawableNode = light->GetComponent<NodeComponent>();
///TODO: Cache somehow?
lightComponent.AddToRenderQueue(renderQueue, m_coordinateSystemMatrix * drawableNode.GetTransformMatrix());
lightComponent.AddToRenderQueue(renderQueue, NzMatrix4f::ConcatenateAffine(m_coordinateSystemMatrix, drawableNode.GetTransformMatrix()));
}
NzSceneData sceneData;