diff --git a/simgear/canvas/Canvas.cxx b/simgear/canvas/Canvas.cxx index 4650e099..16504823 100644 --- a/simgear/canvas/Canvas.cxx +++ b/simgear/canvas/Canvas.cxx @@ -691,6 +691,10 @@ namespace canvas { _sampling_dirty = true; } + else if( name == "anisotropy" ) + { + _texture.setMaxAnisotropy( node->getFloatValue() ); + } else if( name == "additive-blend" ) { _texture.useAdditiveBlend( node->getBoolValue() ); diff --git a/simgear/canvas/ODGauge.cxx b/simgear/canvas/ODGauge.cxx index b591390c..8e9f8c2b 100644 --- a/simgear/canvas/ODGauge.cxx +++ b/simgear/canvas/ODGauge.cxx @@ -201,6 +201,12 @@ namespace canvas updateSampling(); } + //---------------------------------------------------------------------------- + void ODGauge::setMaxAnisotropy(float anis) + { + texture->setMaxAnisotropy(anis); + } + //---------------------------------------------------------------------------- void ODGauge::setRender(bool render) { diff --git a/simgear/canvas/ODGauge.hxx b/simgear/canvas/ODGauge.hxx index e303c4e3..d673d69a 100644 --- a/simgear/canvas/ODGauge.hxx +++ b/simgear/canvas/ODGauge.hxx @@ -109,6 +109,8 @@ namespace canvas int coverage_samples = 0, int color_samples = 0 ); + void setMaxAnisotropy(float anis); + /** * Enable/Disable updating the texture (If disabled the contents of the * texture remains with the outcome of the last rendering pass)