Changed the shadow texture implemention to use CLAMP_TO_BORDER for the

WRAP_S and _T modes.  Also set the border colour to 1,1,1,1 to ensure
problem blending.
This commit is contained in:
Robert Osfield
2003-03-20 08:58:51 +00:00
parent d33680a2c0
commit 38a2408847

View File

@@ -26,6 +26,9 @@ class CreateShadowTextureCullCallback : public osg::NodeCallback
_texture = new osg::Texture2D;
_texture->setFilter(osg::Texture2D::MIN_FILTER,osg::Texture2D::LINEAR);
_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));
}
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv)