Enable EffectCullVisitor
This commit is contained in:
parent
ca3bd1c309
commit
890b584b8f
1 changed files with 2 additions and 2 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "WindowSystemAdapter.hxx"
|
||||
#include <simgear/props/props.hxx>
|
||||
#include <simgear/structure/OSGUtils.hxx>
|
||||
#include <simgear/scene/material/EffectCullVisitor.hxx>
|
||||
#include <simgear/scene/util/RenderConstants.hxx>
|
||||
|
||||
#include <algorithm>
|
||||
|
@ -40,6 +41,7 @@
|
|||
#include <osgUtil/IntersectionVisitor>
|
||||
|
||||
#include <osgViewer/GraphicsWindow>
|
||||
#include <osgViewer/Renderer>
|
||||
|
||||
namespace flightgear
|
||||
{
|
||||
|
@ -100,14 +102,12 @@ void makeNewProjMat(Matrixd& oldProj, double znear,
|
|||
|
||||
void installCullVisitor(Camera* camera)
|
||||
{
|
||||
#if 0 // Not yet
|
||||
osgViewer::Renderer* renderer
|
||||
= static_cast<osgViewer::Renderer*>(camera->getRenderer());
|
||||
for (int i = 0; i < 2; ++i) {
|
||||
osgUtil::SceneView* sceneView = renderer->getSceneView(i);
|
||||
sceneView->setCullVisitor(new simgear::EffectCullVisitor);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue