Skip to content

Commit

Permalink
Merge branch 'waterfiltering' into 'master'
Browse files Browse the repository at this point in the history
Apply filtering settings to water normal map

See merge request OpenMW/openmw!4151
  • Loading branch information
jvoisin committed Jun 4, 2024
2 parents 56b31d8 + c7e98fd commit c7f3277
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/openmw/mwrender/water.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c7f3277

Please sign in to comment.