BatchRenderer2D.cpp: use ICamera::getProjectionViewMatrix()
This commit is contained in:
parent
8686151215
commit
ab9a7e576c
1 changed files with 1 additions and 3 deletions
|
|
@ -117,9 +117,7 @@ void BatchRenderer2D::draw(const Renderable2D* renderable)
|
||||||
|
|
||||||
void BatchRenderer2D::render()
|
void BatchRenderer2D::render()
|
||||||
{
|
{
|
||||||
Matrix4f viewMatrix = m_camera ? m_camera->getViewMatrix() : Matrix4f::Identity;
|
Matrix4f MVP = m_camera ? m_camera->getProjectionViewMatrix() : Matrix4f::Identity;
|
||||||
Matrix4f projMatrix = m_camera ? m_camera->getProjectionMatrix() : Matrix4f::Identity;
|
|
||||||
Matrix4f MVP = projMatrix * viewMatrix;
|
|
||||||
|
|
||||||
// Nothing to render.
|
// Nothing to render.
|
||||||
if (m_queue.size() < 1) {
|
if (m_queue.size() < 1) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue