Added setting of default backgroud colour of View's master colour to be

consistent with the previous default colour used by SceneView
This commit is contained in:
Robert Osfield
2007-01-03 17:26:24 +00:00
parent eb3ef906e7
commit 1de65ddedc
2 changed files with 2 additions and 6 deletions

View File

@@ -20,11 +20,8 @@ View::View()
// osg::notify(osg::NOTICE)<<"Constructing osg::View"<<std::endl;
setCamera(new osg::Camera);
#if 0
_camera->setProjectionMatrixAsPerspective(50.0f,1.4f,1.0f,10000.0f);
#else
_camera->setProjectionMatrixAsFrustum(-0.325, 0.325, -0.26, 0.26, 1.0f,10000.0f);
#endif
_camera->setClearColor(osg::Vec4f(0.2f, 0.2f, 0.4f, 1.0f));
}
View::~View()