From Farshid Lashkari, "Here is the patch we discussed previously about adding a flag to
CullSettings which allows CameraNode to inherit the clear color."
This commit is contained in:
@@ -1151,7 +1151,14 @@ void CullVisitor::apply(osg::CameraNode& camera)
|
||||
|
||||
|
||||
// set up the background color and clear mask.
|
||||
rtts->setClearColor(camera.getClearColor());
|
||||
if (camera.getInheritanceMask() & CLEAR_COLOR)
|
||||
{
|
||||
rtts->setClearColor(camera.getClearColor());
|
||||
}
|
||||
else
|
||||
{
|
||||
rtts->setClearColor(previous_stage->getClearColor());
|
||||
}
|
||||
rtts->setClearMask(camera.getClearMask());
|
||||
|
||||
// set the color mask.
|
||||
|
||||
Reference in New Issue
Block a user