Set Texture::setMaxAnisotropy() to 16.0f for better quality terrain when looking at shallow angle.
This commit is contained in:
parent
f42497bc2b
commit
960e0bd378
@ -669,6 +669,7 @@ void GeometryTechnique::applyColorLayers()
|
|||||||
{
|
{
|
||||||
texture2D = new osg::Texture2D;
|
texture2D = new osg::Texture2D;
|
||||||
texture2D->setImage(image);
|
texture2D->setImage(image);
|
||||||
|
texture2D->setMaxAnisotropy(16.0f);
|
||||||
texture2D->setResizeNonPowerOfTwoHint(false);
|
texture2D->setResizeNonPowerOfTwoHint(false);
|
||||||
texture2D->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR_MIPMAP_LINEAR);
|
texture2D->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR_MIPMAP_LINEAR);
|
||||||
texture2D->setFilter(osg::Texture::MAG_FILTER, colorLayer->getFilter()==Layer::LINEAR ? osg::Texture::LINEAR : osg::Texture::NEAREST);
|
texture2D->setFilter(osg::Texture::MAG_FILTER, colorLayer->getFilter()==Layer::LINEAR ? osg::Texture::LINEAR : osg::Texture::NEAREST);
|
||||||
|
Loading…
Reference in New Issue
Block a user