From 5731ea2352c5c22492a1ce6bc35d9a746d725ef9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 26 Sep 2005 11:24:37 +0000 Subject: [PATCH] Set the defaul clear colour to 0,0,0,0. --- src/osgSim/OverlayNode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgSim/OverlayNode.cpp b/src/osgSim/OverlayNode.cpp index 887cffdaf..96def56ff 100644 --- a/src/osgSim/OverlayNode.cpp +++ b/src/osgSim/OverlayNode.cpp @@ -53,7 +53,7 @@ void OverlayNode::init() texture->setFilter(osg::Texture2D::MAG_FILTER,osg::Texture2D::LINEAR); texture->setWrap(osg::Texture2D::WRAP_S,osg::Texture2D::CLAMP_TO_BORDER); texture->setWrap(osg::Texture2D::WRAP_T,osg::Texture2D::CLAMP_TO_BORDER); - texture->setBorderColor(osg::Vec4(1.0f,1.0f,1.0f,1.0f)); + texture->setBorderColor(osg::Vec4(1.0f,1.0f,1.0f,0.0f)); _texture = texture; } @@ -63,7 +63,7 @@ void OverlayNode::init() // create the camera _camera = new osg::CameraNode; - _camera->setClearColor(osg::Vec4(1.0f,1.0f,1.0f,1.0f)); + _camera->setClearColor(osg::Vec4(0.0f,0.0f,0.0f,0.0f)); // set viewport _camera->setViewport(0,0,tex_width,tex_height);