OgreXML materials: inherit more parameters from TextureKey

Allows modifying the key in a AssetLoadListener to modify the anisotropic filter
This commit is contained in:
shadowislord 2015-02-21 15:40:42 -05:00
parent 9ad1992681
commit 9759e24961

View File

@ -139,6 +139,8 @@ public class MaterialLoader implements AssetLoader {
textures[texUnit].setImage(loadedTexture.getImage()); textures[texUnit].setImage(loadedTexture.getImage());
textures[texUnit].setMinFilter(loadedTexture.getMinFilter()); textures[texUnit].setMinFilter(loadedTexture.getMinFilter());
textures[texUnit].setMagFilter(loadedTexture.getMagFilter());
textures[texUnit].setAnisotropicFilter(loadedTexture.getAnisotropicFilter());
textures[texUnit].setKey(loadedTexture.getKey()); textures[texUnit].setKey(loadedTexture.getKey());
// XXX: Is this really neccessary? // XXX: Is this really neccessary?