OgreXML materials: inherit more parameters from TextureKey

Allows modifying the key in a AssetLoadListener to modify the anisotropic filter
experimental
shadowislord 10 years ago
parent 9ad1992681
commit 9759e24961
  1. 2
      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?

Loading…
Cancel
Save