From Paul Martsz, changed the Texture clamping mode to CLAMP_TO_EDGE
This commit is contained in:
@@ -85,6 +85,8 @@ void ShadowMap::init()
|
||||
_texture->setShadowTextureMode(osg::Texture2D::LUMINANCE);
|
||||
_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_EDGE);
|
||||
_texture->setWrap(osg::Texture2D::WRAP_T,osg::Texture2D::CLAMP_TO_EDGE);
|
||||
|
||||
// set up the render to texture camera.
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user