Set far camera reference frame to ABSOLUTE_RF
This was lost when I stopped cloning the near camera to make the far camera. The result was a lot of breakage, including explicit camera configurations not working and various ordering issues too.
This commit is contained in:
parent
74031287b4
commit
61a496c2ea
1 changed files with 1 additions and 0 deletions
|
@ -139,6 +139,7 @@ CameraInfo* CameraGroup::addCamera(unsigned flags, Camera* camera,
|
|||
farCamera->setGraphicsContext(camera->getGraphicsContext());
|
||||
farCamera->setCullingMode(camera->getCullingMode());
|
||||
farCamera->setInheritanceMask(camera->getInheritanceMask());
|
||||
farCamera->setReferenceFrame(Transform::ABSOLUTE_RF);
|
||||
// Each camera's viewport is written when the window is
|
||||
// resized; if the the viewport isn't copied here, it gets updated
|
||||
// twice and ends up with the wrong value.
|
||||
|
|
Loading…
Add table
Reference in a new issue