Commit 3be085dc authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[FIX] - this should fix problems with the postprocessor stuff due to disabled blending.

parent a9b8c090
...@@ -261,7 +261,6 @@ void WMFiberDisplaySimple::moduleMain() ...@@ -261,7 +261,6 @@ void WMFiberDisplaySimple::moduleMain()
osg::ref_ptr< WGEPostprocessingNode > postNode = new WGEPostprocessingNode( osg::ref_ptr< WGEPostprocessingNode > postNode = new WGEPostprocessingNode(
WKernel::getRunningKernel()->getGraphicsEngine()->getViewer()->getCamera() WKernel::getRunningKernel()->getGraphicsEngine()->getViewer()->getCamera()
); );
postNode->setEnabled( false ); // do not use it by default
postNode->addUpdateCallback( new WGENodeMaskCallback( m_active ) ); // disable the postNode with m_active postNode->addUpdateCallback( new WGENodeMaskCallback( m_active ) ); // disable the postNode with m_active
WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->insert( postNode ); WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->insert( postNode );
// provide the properties of the post-processor to the user // provide the properties of the post-processor to the user
......
...@@ -194,7 +194,6 @@ void WMIsosurfaceRaytracer::moduleMain() ...@@ -194,7 +194,6 @@ void WMIsosurfaceRaytracer::moduleMain()
osg::ref_ptr< WGEPostprocessingNode > postNode = new WGEPostprocessingNode( osg::ref_ptr< WGEPostprocessingNode > postNode = new WGEPostprocessingNode(
WKernel::getRunningKernel()->getGraphicsEngine()->getViewer()->getCamera() WKernel::getRunningKernel()->getGraphicsEngine()->getViewer()->getCamera()
); );
postNode->setEnabled( false ); // do not use it by default
postNode->addUpdateCallback( new WGENodeMaskCallback( m_active ) ); // disable the postNode with m_active postNode->addUpdateCallback( new WGENodeMaskCallback( m_active ) ); // disable the postNode with m_active
// provide the properties of the post-processor to the user // provide the properties of the post-processor to the user
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment