1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

Add none texture filtering .It is fixes a bug with black objects in shaders glsles

This commit is contained in:
sylar 2014-10-07 23:30:31 +04:00
parent 744c56943a
commit f75721a217
3 changed files with 5 additions and 2 deletions

View file

@ -35,8 +35,10 @@ namespace
return "Anisotropic";
else if (val == "bilinear")
return "Bilinear";
else
else if (val == "trilinear")
return "Trilinear";
else if (val == "none")
return "None";
}
void parseResolution (int &x, int &y, const std::string& str)

View file

@ -122,7 +122,7 @@ RenderingManager::RenderingManager(OEngine::Render::OgreRenderer& _rend, const b
if (filter == "anisotropic") tfo = TFO_ANISOTROPIC;
else if (filter == "trilinear") tfo = TFO_TRILINEAR;
else if (filter == "bilinear") tfo = TFO_BILINEAR;
else /*if (filter == "none")*/ tfo = TFO_NONE;
else if (filter == "none") tfo = TFO_NONE;
MaterialManager::getSingleton().setDefaultTextureFiltering(tfo);
MaterialManager::getSingleton().setDefaultAnisotropy( (filter == "anisotropic") ? Settings::Manager::getInt("anisotropy", "General") : 1 );

View file

@ -324,6 +324,7 @@
<Property key="AddItem" value="Bilinear"/>
<Property key="AddItem" value="Trilinear"/>
<Property key="AddItem" value="Anisotropic"/>
<Property key="AddItem" value="None"/>
</Widget>
<Widget type="Widget" skin="" position="184 4 300 50" align="Left Top" name="AnisotropyBox">