|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
com.jme3.scene.plugins.ogre.matext
allows loading of more advanced
Ogre3D materials that use "base" materials to abstract functionality.
See:
Description
Class Summary | |
---|---|
MaterialExtension | MaterialExtension defines a mapping from an Ogre3D "base" material
to a jME3 material definition. |
MaterialExtensionLoader | Used internally by MaterialLoader |
MaterialExtensionSet | MaterialExtensionSet is simply a container for several
MaterialExtension s so that it can be set globally for all
OgreMaterialKey s used. |
OgreMaterialKey | OgreMaterialKey allows specifying material extensions, which map
from Ogre3D base materials to jME3 materials |
com.jme3.scene.plugins.ogre.matext
allows loading of more advanced
Ogre3D materials that use "base" materials to abstract functionality.
E.g. example of an Ogre3D material instance:
import * from "materials/baselighting.material"
material MyMaterial : BaseLightingMaterial
{
set_texture_alias MyTexture textures/mytex.png
}
Example code of loading the above material:
MaterialExtensionSet matExts = new MaterialExtensionSet();
MaterialExtension baseLightExt = new MaterialExtension("BaseLightingMaterial",
"Common/MatDefs/Light/Lighting.j3md");
baseLightExt.setTextureMapping("MyTexture", "m_DiffuseMap");
matExts.addMaterialExtension(baseLightExt);
OgreMaterialKey matKey = new OgreMaterialKey("materials/mymaterial.material");
matKey.setMaterialExtensionSet(matExts);
MaterialList ogreMats = assetManager.loadAsset(matKey);
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |