Added support for setting up VisualChoose with destination alpha, stencil and

quad buffers attributes from DisplaySettings values.
This commit is contained in:
Robert Osfield
2003-03-20 14:07:03 +00:00
parent 38a2408847
commit 0476348a0c
5 changed files with 64 additions and 10 deletions

View File

@@ -102,7 +102,7 @@ void CreateShadowTextureCullCallback::doPreRender(osg::Node& node, osgUtil::Cull
osgUtil::RenderStage* previous_stage = cv.getCurrentRenderBin()->_stage;
// set up the background color and clear mask.
rtts->setClearColor(osg::Vec4(1.0f,1.0f,1.0f,0.0f));
rtts->setClearColor(osg::Vec4(1.0f,1.0f,1.0f,1.0f));
rtts->setClearMask(previous_stage->getClearMask());
// set up to charge the same RenderStageLighting is the parent previous stage.