public abstract class Material extends A3DObject
LambertMaterial
, PhongMaterial
and ShaderMaterial
Modifier and Type | Field and Description |
---|---|
static String |
MAP_AMBIENT
Used in
setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a ambient texture mapping. |
static String |
MAP_DIFFUSE
Used in
setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a diffuse texture mapping. |
static String |
MAP_EMISSIVE
Used in
setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a emissive texture mapping. |
static String |
MAP_NORMAL
Used in
setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a normal texture mapping. |
static String |
MAP_SPECULAR
Used in
setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a specular texture mapping. |
Modifier | Constructor and Description |
---|---|
protected |
Material()
Initializes a new instance of the
Material class. |
protected |
Material(String name)
Initializes a new instance of the
Material class. |
Modifier and Type | Method and Description |
---|---|
TextureBase |
getTexture(String slotName)
Gets the texture from the specified slot, it can be material's property name or shader's parameter name
|
void |
setTexture(String slotName,
TextureBase texture)
Sets the texture to specified slot
|
String |
toString()
Formats object to string
|
findProperty, getName, getProperty, removeProperty, removeProperty, setName, setProperty
public static final String MAP_SPECULAR
setTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a specular texture mapping.public static final String MAP_DIFFUSE
setTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a diffuse texture mapping.public static final String MAP_EMISSIVE
setTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a emissive texture mapping.public static final String MAP_AMBIENT
setTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a ambient texture mapping.public static final String MAP_NORMAL
setTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a normal texture mapping.protected Material(String name)
Material
class.name
- Nameprotected Material()
Material
class.public TextureBase getTexture(String slotName)
slotName
- Slot name.public void setTexture(String slotName, TextureBase texture)
slotName
- Slot name.texture
- Texture.Copyright © 2019. All rights reserved.