mirror of https://github.com/axmolengine/axmol.git
correct physics3d debug draw camera (#16927)
This commit is contained in:
parent
fdb94d59d2
commit
56232a136b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue