From c7e98fdb456d260aa0c0f48e27437aeb8d6ca600 Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Mon, 3 Jun 2024 11:12:29 +0300 Subject: [PATCH] Apply filtering settings to water normal map --- apps/openmw/mwrender/water.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/openmw/mwrender/water.cpp b/apps/openmw/mwrender/water.cpp index cbc560d5ac..f89c2250b0 100644 --- a/apps/openmw/mwrender/water.cpp +++ b/apps/openmw/mwrender/water.cpp @@ -717,9 +717,7 @@ namespace MWRender new osg::Texture2D(mResourceSystem->getImageManager()->getImage("textures/omw/water_nm.png"))); normalMap->setWrap(osg::Texture::WRAP_S, osg::Texture::REPEAT); normalMap->setWrap(osg::Texture::WRAP_T, osg::Texture::REPEAT); - normalMap->setMaxAnisotropy(16); - normalMap->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR_MIPMAP_LINEAR); - normalMap->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR); + mResourceSystem->getSceneManager()->applyFilterSettings(normalMap); mRainSettingsUpdater = new RainSettingsUpdater(); node->setUpdateCallback(mRainSettingsUpdater);