From 9759e249613340904c8c1182cec24cbfb4fd160c Mon Sep 17 00:00:00 2001 From: shadowislord Date: Sat, 21 Feb 2015 15:40:42 -0500 Subject: [PATCH] OgreXML materials: inherit more parameters from TextureKey Allows modifying the key in a AssetLoadListener to modify the anisotropic filter --- .../ogre/java/com/jme3/scene/plugins/ogre/MaterialLoader.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MaterialLoader.java b/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MaterialLoader.java index 90840542d..fe9de477a 100644 --- a/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MaterialLoader.java +++ b/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MaterialLoader.java @@ -139,6 +139,8 @@ public class MaterialLoader implements AssetLoader { textures[texUnit].setImage(loadedTexture.getImage()); textures[texUnit].setMinFilter(loadedTexture.getMinFilter()); + textures[texUnit].setMagFilter(loadedTexture.getMagFilter()); + textures[texUnit].setAnisotropicFilter(loadedTexture.getAnisotropicFilter()); textures[texUnit].setKey(loadedTexture.getKey()); // XXX: Is this really neccessary?