Class MaterialExtensionSet
java.lang.Object
com.jme3.scene.plugins.ogre.matext.MaterialExtensionSet
MaterialExtensionSet
is simply a container for several
MaterialExtension
s so that it can be set globally for all
OgreMaterialKey
s used.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMaterialExtension
(MaterialExtension extension) Adds a new material extension to the set of extensions.getMaterialExtension
(String baseMatName) Returns theMaterialExtension
for a given Ogre3D base material name.getNameMappings
(String name) void
setNameMapping
(String name, String alias) Adds an alternative name for a material
-
Constructor Details
-
MaterialExtensionSet
public MaterialExtensionSet()
-
-
Method Details
-
addMaterialExtension
Adds a new material extension to the set of extensions.- Parameters:
extension
- TheMaterialExtension
to add.
-
getMaterialExtension
Returns theMaterialExtension
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
Adds an alternative name for a material- Parameters:
name
- The material name to be found in a .mesh.xml filealias
- The material name to be found in a .material file
-
getNameMappings
-