From Richard Schmidt, "attached you will find a set of small fixes and features.
CullVisitor/SceneView: *Feature: This version supports multiple clearnodes in the graph, one per renderstage. Text: *Feature: Performance Enhancement when calling SetBackdropColor Material: *Fix: OpenGL calls are now made according to the OpenGL Standard "
This commit is contained in:
@@ -764,9 +764,6 @@ bool SceneView::cullStage(const osg::Matrixd& projection,const osg::Matrixd& mod
|
||||
|
||||
cullVisitor->inheritCullSettings(*this);
|
||||
|
||||
|
||||
cullVisitor->setClearNode(NULL); // reset earth sky on each frame.
|
||||
|
||||
cullVisitor->setStateGraph(rendergraph);
|
||||
cullVisitor->setRenderStage(renderStage);
|
||||
|
||||
@@ -829,22 +826,6 @@ bool SceneView::cullStage(const osg::Matrixd& projection,const osg::Matrixd& mod
|
||||
if (_globalStateSet.valid()) cullVisitor->popStateSet();
|
||||
|
||||
|
||||
const osg::ClearNode* clearNode = cullVisitor->getClearNode();
|
||||
if (clearNode)
|
||||
{
|
||||
if (clearNode->getRequiresClear())
|
||||
{
|
||||
renderStage->setClearColor(clearNode->getClearColor());
|
||||
renderStage->setClearMask(clearNode->getClearMask());
|
||||
}
|
||||
else
|
||||
{
|
||||
// we have an earth sky implementation to do the work for use
|
||||
// so we don't need to clear.
|
||||
renderStage->setClearMask(0);
|
||||
}
|
||||
}
|
||||
|
||||
renderStage->sort();
|
||||
|
||||
// prune out any empty StateGraph children.
|
||||
|
||||
Reference in New Issue
Block a user