mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-11 13:25:53 -04:00
Apply filtering settings to water normal map
This commit is contained in:
parent
05815b3952
commit
c7e98fdb45
@ -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…
x
Reference in New Issue
Block a user