|
|
@ -455,16 +455,16 @@ void OMW::Engine::prepareEngine (Settings::Manager & settings)
|
|
|
|
osg::Texture::FilterMode min = osg::Texture::LINEAR;
|
|
|
|
osg::Texture::FilterMode min = osg::Texture::LINEAR;
|
|
|
|
osg::Texture::FilterMode mag = osg::Texture::LINEAR;
|
|
|
|
osg::Texture::FilterMode mag = osg::Texture::LINEAR;
|
|
|
|
|
|
|
|
|
|
|
|
std::string filter = Settings::Manager::getString("texture filtering", "General");
|
|
|
|
std::string filter = Settings::Manager::getString("texture filter", "General");
|
|
|
|
if(filter == "nearest")
|
|
|
|
if(filter == "nearest")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
min = osg::Texture::NEAREST;
|
|
|
|
min = osg::Texture::NEAREST;
|
|
|
|
mag = osg::Texture::NEAREST;
|
|
|
|
mag = osg::Texture::NEAREST;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if(filter != "linear")
|
|
|
|
else if(filter != "linear")
|
|
|
|
std::cerr<< "Invalid texture filtering option: "<<filter <<std::endl;
|
|
|
|
std::cerr<< "Invalid texture filter option: "<<filter <<std::endl;
|
|
|
|
|
|
|
|
|
|
|
|
std::string mipmap = Settings::Manager::getString("texture mipmapping", "General");
|
|
|
|
std::string mipmap = Settings::Manager::getString("texture mipmap", "General");
|
|
|
|
if(mipmap == "nearest")
|
|
|
|
if(mipmap == "nearest")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(min == osg::Texture::NEAREST)
|
|
|
|
if(min == osg::Texture::NEAREST)
|
|
|
@ -475,7 +475,7 @@ void OMW::Engine::prepareEngine (Settings::Manager & settings)
|
|
|
|
else if(mipmap != "none")
|
|
|
|
else if(mipmap != "none")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(mipmap != "linear")
|
|
|
|
if(mipmap != "linear")
|
|
|
|
std::cerr<< "Invalid texture mipmapping option: "<<mipmap <<std::endl;
|
|
|
|
std::cerr<< "Invalid texture mipmap option: "<<mipmap <<std::endl;
|
|
|
|
if(min == osg::Texture::NEAREST)
|
|
|
|
if(min == osg::Texture::NEAREST)
|
|
|
|
min = osg::Texture::NEAREST_MIPMAP_LINEAR;
|
|
|
|
min = osg::Texture::NEAREST_MIPMAP_LINEAR;
|
|
|
|
else if(min == osg::Texture::LINEAR)
|
|
|
|
else if(min == osg::Texture::LINEAR)
|
|
|
|