mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 19:41:33 +00:00
Apply filtering settings to water normal map
This commit is contained in:
parent
05815b3952
commit
c7e98fdb45
1 changed files with 1 additions and 3 deletions
|
@ -717,9 +717,7 @@ namespace MWRender
|
||||||
new osg::Texture2D(mResourceSystem->getImageManager()->getImage("textures/omw/water_nm.png")));
|
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_S, osg::Texture::REPEAT);
|
||||||
normalMap->setWrap(osg::Texture::WRAP_T, osg::Texture::REPEAT);
|
normalMap->setWrap(osg::Texture::WRAP_T, osg::Texture::REPEAT);
|
||||||
normalMap->setMaxAnisotropy(16);
|
mResourceSystem->getSceneManager()->applyFilterSettings(normalMap);
|
||||||
normalMap->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR_MIPMAP_LINEAR);
|
|
||||||
normalMap->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR);
|
|
||||||
|
|
||||||
mRainSettingsUpdater = new RainSettingsUpdater();
|
mRainSettingsUpdater = new RainSettingsUpdater();
|
||||||
node->setUpdateCallback(mRainSettingsUpdater);
|
node->setUpdateCallback(mRainSettingsUpdater);
|
||||||
|
|
Loading…
Reference in a new issue