public final class MaterialContext
extends java.lang.Object
implements com.jme3.export.Savable
| Modifier and Type | Field and Description |
|---|---|
static int |
MTEX_ALPHA |
static int |
MTEX_AMB |
static int |
MTEX_COL |
static int |
MTEX_EMIT |
static int |
MTEX_NOR |
static int |
MTEX_SPEC |
| Modifier and Type | Method and Description |
|---|---|
void |
applyMaterial(com.jme3.scene.Geometry geometry,
java.lang.Long geometriesOMA,
java.util.Map<java.lang.String,java.util.List<com.jme3.math.Vector2f>> userDefinedUVCoordinates,
BlenderContext blenderContext)
Applies material to a given geometry.
|
java.lang.String |
getName() |
boolean |
hasGeneratedTextures() |
void |
read(com.jme3.export.JmeImporter e) |
void |
setFaceCullMode(com.jme3.material.RenderState.FaceCullMode faceCullMode)
This method sets the face cull mode.
|
void |
write(com.jme3.export.JmeExporter e) |
public static final int MTEX_COL
public static final int MTEX_NOR
public static final int MTEX_SPEC
public static final int MTEX_EMIT
public static final int MTEX_ALPHA
public static final int MTEX_AMB
public java.lang.String getName()
public void applyMaterial(com.jme3.scene.Geometry geometry,
java.lang.Long geometriesOMA,
java.util.Map<java.lang.String,java.util.List<com.jme3.math.Vector2f>> userDefinedUVCoordinates,
BlenderContext blenderContext)
geometry - the geometrygeometriesOMA - the geometries OMAuserDefinedUVCoordinates - UV coords defined by userblenderContext - the blender contextpublic boolean hasGeneratedTextures()
public void setFaceCullMode(com.jme3.material.RenderState.FaceCullMode faceCullMode)
faceCullMode - the face cull modepublic void write(com.jme3.export.JmeExporter e)
throws java.io.IOException
write in interface com.jme3.export.Savablejava.io.IOExceptionpublic void read(com.jme3.export.JmeImporter e)
throws java.io.IOException
read in interface com.jme3.export.Savablejava.io.IOException