1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-11 19:13:29 +00:00

Merge branch 'waterfiltering' into 'master'

Apply filtering settings to water normal map

See merge request OpenMW/openmw!4151
This commit is contained in:
jvoisin 2024-06-04 16:37:52 +00:00
commit c7f3277744

View File

@ -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);