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:
Robert Osfield
2007-12-10 20:30:05 +00:00
parent 9d260213f7
commit c5704586f9
3 changed files with 11 additions and 25 deletions

View File

@@ -1090,7 +1090,17 @@ void CullVisitor::apply(LOD& node)
void CullVisitor::apply(osg::ClearNode& node)
{
// simply override the current earth sky.
setClearNode(&node);
if (node.getRequiresClear())
{
getCurrentRenderBin()->getStage()->setClearColor(node.getClearColor());
getCurrentRenderBin()->getStage()->setClearMask(node.getClearMask());
}
else
{
// we have an earth sky implementation to do the work for use
// so we don't need to clear.
getCurrentRenderBin()->getStage()->setClearMask(0);
}
// push the node's state.
StateSet* node_state = node.getStateSet();