Class MaterialExtensionSet

java.lang.Object
com.jme3.scene.plugins.ogre.matext.MaterialExtensionSet

public class MaterialExtensionSet extends Object
MaterialExtensionSet is simply a container for several MaterialExtensions so that it can be set globally for all OgreMaterialKeys used.
  • Constructor Details

    • MaterialExtensionSet

      public MaterialExtensionSet()
  • Method Details

    • addMaterialExtension

      public void addMaterialExtension(MaterialExtension extension)
      Adds a new material extension to the set of extensions.
      Parameters:
      extension - The MaterialExtension to add.
    • getMaterialExtension

      public MaterialExtension getMaterialExtension(String baseMatName)
      Returns the MaterialExtension for a given Ogre3D base material name.
      Parameters:
      baseMatName - The ogre3D base material name.
      Returns:
      MaterialExtension that is set, or null if not set.
    • setNameMapping

      public void setNameMapping(String name, String alias)
      Adds an alternative name for a material
      Parameters:
      name - The material name to be found in a .mesh.xml file
      alias - The material name to be found in a .material file
    • getNameMappings

      public List<String> getNameMappings(String name)