Ndk: Optimize coordinate system matrix concatenation
Since both matrix are affine Former-commit-id: e2e35ad9af0183291b7345229f9af4425cb523fb
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user