public abstract class Material extends A3DObject implements java.lang.Iterable<TextureSlot>
LambertMaterial
, PhongMaterial
and ShaderMaterial
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAP_AMBIENT
Used in
setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a ambient texture mapping. |
static java.lang.String |
MAP_DIFFUSE
Used in
setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a diffuse texture mapping. |
static java.lang.String |
MAP_EMISSIVE
Used in
setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a emissive texture mapping. |
static java.lang.String |
MAP_NORMAL
Used in
setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a normal texture mapping. |
static java.lang.String |
MAP_SPECULAR
Used in
setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a specular texture mapping. |
name, properties
Modifier | Constructor and Description |
---|---|
protected |
Material()
Initializes a new instance of the
Material class. |
protected |
Material(java.lang.String name)
Initializes a new instance of the
Material class. |
Modifier and Type | Method and Description |
---|---|
TextureBase |
getTexture(java.lang.String slotName)
Gets the texture from the specified slot, it can be material's property name or shader's parameter name
|
java.util.Iterator<TextureSlot> |
iterator()
Gets the enumerator to enumerate internal texture slots.
|
void |
setTexture(java.lang.String slotName,
TextureBase texture)
Sets the texture to specified slot
|
java.lang.String |
toString()
Formats object to string
|
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
public static final java.lang.String MAP_SPECULAR
setTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a specular texture mapping.public static final java.lang.String MAP_DIFFUSE
setTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a diffuse texture mapping.public static final java.lang.String MAP_EMISSIVE
setTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a emissive texture mapping.public static final java.lang.String MAP_AMBIENT
setTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a ambient texture mapping.public static final java.lang.String MAP_NORMAL
setTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a normal texture mapping.protected Material(java.lang.String name)
Material
class.name
- Nameprotected Material()
Material
class.public TextureBase getTexture(java.lang.String slotName)
slotName
- Slot name.public void setTexture(java.lang.String slotName, TextureBase texture)
slotName
- Slot name.texture
- Texture.public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<TextureSlot> iterator()
iterator
in interface java.lang.Iterable<TextureSlot>