b23a48a763
role it has play and make it more relevant to non vis-sim applications.
21 lines
329 B
C++
21 lines
329 B
C++
#include <osg/ClearNode>
|
|
|
|
#include <algorithm>
|
|
|
|
using namespace osg;
|
|
|
|
/**
|
|
* ClearNode constructor.
|
|
*/
|
|
ClearNode::ClearNode()
|
|
{
|
|
StateSet* stateset = osgNew StateSet;
|
|
stateset->setRenderBinDetails(-1,"RenderBin");
|
|
setStateSet(stateset);
|
|
|
|
_requiresClear = true;
|
|
_clearColor.set(0.0f,0.0f,0.0f,1.0f);
|
|
|
|
}
|
|
|