From: <sv...@ww...> - 2006-09-07 03:25:21
|
Author: mkrose Date: 2006-09-06 20:25:14 -0700 (Wed, 06 Sep 2006) New Revision: 1984 Modified: trunk/csp/cspsim/sky/SkyDome.cpp Log: Set wrapping modes of fog texture. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1984 Modified: trunk/csp/cspsim/sky/SkyDome.cpp =================================================================== --- trunk/csp/cspsim/sky/SkyDome.cpp 2006-09-04 19:12:10 UTC (rev 1983) +++ trunk/csp/cspsim/sky/SkyDome.cpp 2006-09-07 03:25:14 UTC (rev 1984) @@ -258,7 +258,8 @@ m_HorizonImage->allocateImage(m_HorizonColors->size(), 4, 1, GL_RGB, GL_UNSIGNED_BYTE); m_HorizonTexture = new osg::Texture2D; m_HorizonTexture->setImage(m_HorizonImage.get()); - m_HorizonTexture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE); + m_HorizonTexture->setWrap(osg::Texture::WRAP_S, osg::Texture::MIRROR); + m_HorizonTexture->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_EDGE); } void SkyDome::updateHorizon() { |