correct physics3d debug draw camera (#16927)

This commit is contained in:
minggo 2016-11-30 14:38:18 +08:00 committed by GitHub
parent fdb94d59d2
commit 56232a136b
1 changed files with 5 additions and 0 deletions

View File

@ -257,9 +257,14 @@ void Scene::render(Renderer* renderer, const Mat4* eyeTransforms, const Mat4* ey
director->pushProjectionMatrix(i);
director->loadProjectionMatrix(physics3dDebugCamera->getViewProjectionMatrix(), i);
}
_physics3dDebugCamera->apply();
_physics3dDebugCamera->clearBackground();
_physics3DWorld->debugDraw(renderer);
renderer->render();
_physics3dDebugCamera->restore();
for (unsigned int i = 0; i < multiViewCount; ++i)
director->popProjectionMatrix(i);