Class MaterialExtension

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

public class MaterialExtension extends Object
MaterialExtension defines a mapping from an Ogre3D "base" material to a jME3 material definition.
  • Constructor Details

    • MaterialExtension

      public MaterialExtension(String baseMatName, String jmeMatDefName)
      Material extension defines a mapping from an Ogre3D "base" material to a jME3 material definition.
      Parameters:
      baseMatName - The base material name for Ogre3D
      jmeMatDefName - The material definition name for jME3
  • Method Details

    • getBaseMaterialName

      public String getBaseMaterialName()
    • getJmeMatDefName

      public String getJmeMatDefName()
    • setTextureMapping

      public void setTextureMapping(String ogreTexAlias, String jmeTexParam)
      Set mapping from an Ogre3D base material texture alias to a jME3 texture param
      Parameters:
      ogreTexAlias - The texture alias in the Ogre3D base material
      jmeTexParam - The texture param name in the jME3 material definition.
    • getTextureMapping

      public String getTextureMapping(String ogreTexAlias)
      Retrieves a mapping from an Ogre3D base material texture alias to a jME3 texture param
      Parameters:
      ogreTexAlias - The texture alias in the Ogre3D base material
      Returns:
      The texture alias in the Ogre3D base material