Merge branch 'NDK' into NDK-ShadowMapping
Former-commit-id: 271757d5d425b93422bd15a7e119f8eb0cec800b
This commit is contained in:
commit
cca9bb238b
|
|
@ -69,7 +69,7 @@ namespace Ndk
|
||||||
|
|
||||||
Ndk::RenderSystem& renderSystem = m_entity->GetWorld()->GetSystem<Ndk::RenderSystem>();
|
Ndk::RenderSystem& renderSystem = m_entity->GetWorld()->GetSystem<Ndk::RenderSystem>();
|
||||||
|
|
||||||
m_transformMatrix = renderSystem.GetCoordinateSystemMatrix() * m_entity->GetComponent<NodeComponent>().GetTransformMatrix();
|
m_transformMatrix = NzMatrix4f::ConcatenateAffine(renderSystem.GetCoordinateSystemMatrix(), m_entity->GetComponent<NodeComponent>().GetTransformMatrix());
|
||||||
m_transformMatrixUpdated = true;
|
m_transformMatrixUpdated = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ namespace Ndk
|
||||||
NodeComponent& lightNode = light->GetComponent<NodeComponent>();
|
NodeComponent& lightNode = light->GetComponent<NodeComponent>();
|
||||||
|
|
||||||
///TODO: Cache somehow?
|
///TODO: Cache somehow?
|
||||||
lightComponent.AddToRenderQueue(renderQueue, m_coordinateSystemMatrix * drawableNode.GetTransformMatrix());
|
lightComponent.AddToRenderQueue(renderQueue, NzMatrix4f::ConcatenateAffine(m_coordinateSystemMatrix, drawableNode.GetTransformMatrix()));
|
||||||
}
|
}
|
||||||
|
|
||||||
camComponent.ApplyView();
|
camComponent.ApplyView();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue