Explorar o código

OgreXML materials: inherit more parameters from TextureKey
Allows modifying the key in a AssetLoadListener to modify the anisotropic filter

shadowislord %!s(int64=10) %!d(string=hai) anos
pai
achega
9759e24961

+ 2 - 0
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?