Added setting of the fusion distance.
This commit is contained in:
parent
8d999a07cf
commit
e57e6c5409
@ -51,6 +51,10 @@ void CameraProperty::update(osgViewer::View* view)
|
||||
}
|
||||
|
||||
camera->setViewMatrix( matrix );
|
||||
|
||||
// set the fusion distance up so that the left and right eye images are co-incedent on the image plane at the center of ration.
|
||||
view->setFusionDistance(osgUtil::SceneView::USE_FUSION_DISTANCE_VALUE,(_center-_eye).length());
|
||||
// view->setFusionDistance(osgUtil::SceneView::PROPORTIONAL_TO_SCREEN_DISTANCE, 1.0);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user