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

Apply filtering settings to water normal map

This commit is contained in:
Alexei Kotov 2024-06-03 11:12:29 +03:00
parent 05815b3952
commit c7e98fdb45

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