Преглед изворни кода

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

shadowislord пре 10 година
родитељ
комит
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?