}
void FGRenderer::setCameraParameters(float vfov, float aspectRatio,
- float near, float far)
+ float zNear, float zFar)
{
- near = .1;
+ zNear = .1;
osgViewer::Viewer* viewer = globals->get_renderer()->getViewer();
viewer->getCamera()->setProjectionMatrixAsPerspective(vfov,
1.0f / aspectRatio,
- near, far);
+ zNear, zFar);
}
bool
/** Set all the camera parameters at once. aspectRatio is height / width.
*/
static void setCameraParameters(float vfov, float aspectRatio,
- float near, float far);
+ float zNear, float zFar);
/** Just pick into the scene and return the pick callbacks on the way ...
*/
static bool pick( unsigned x, unsigned y,