Package com.aspose.threed
Class Material
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.Material
-
- All Implemented Interfaces:
INamedObject
,java.lang.Iterable<TextureSlot>
- Direct Known Subclasses:
LambertMaterial
,PbrMaterial
,PbrSpecularMaterial
,ShaderMaterial
public abstract class Material extends A3DObject implements java.lang.Iterable<TextureSlot>
Material defines the parameters necessary for visual appearance of geometry. Aspose.3D provides shading model forLambertMaterial
,PhongMaterial
andShaderMaterial
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MAP_AMBIENT
Used insetTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a ambient texture mapping.static java.lang.String
MAP_DIFFUSE
Used insetTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a diffuse texture mapping.static java.lang.String
MAP_EMISSIVE
Used insetTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a emissive texture mapping.static java.lang.String
MAP_NORMAL
Used insetTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a normal texture mapping.static java.lang.String
MAP_SPECULAR
Used insetTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a specular texture mapping.-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 namejava.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 slotjava.lang.String
toString()
Formats object to string-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Field Detail
-
MAP_SPECULAR
public static final java.lang.String MAP_SPECULAR
Used insetTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a specular texture mapping.- See Also:
- Constant Field Values
-
MAP_DIFFUSE
public static final java.lang.String MAP_DIFFUSE
Used insetTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a diffuse texture mapping.- See Also:
- Constant Field Values
-
MAP_EMISSIVE
public static final java.lang.String MAP_EMISSIVE
Used insetTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a emissive texture mapping.- See Also:
- Constant Field Values
-
MAP_AMBIENT
public static final java.lang.String MAP_AMBIENT
Used insetTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a ambient texture mapping.- See Also:
- Constant Field Values
-
MAP_NORMAL
public static final java.lang.String MAP_NORMAL
Used insetTexture(java.lang.String, com.aspose.threed.TextureBase)
to assign a normal texture mapping.- See Also:
- Constant Field Values
-
-
Method Detail
-
getTexture
public 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- Parameters:
slotName
- Slot name.- Returns:
- The texture.
-
setTexture
public void setTexture(java.lang.String slotName, TextureBase texture)
Sets the texture to specified slot- Parameters:
slotName
- Slot name.texture
- Texture.
-
toString
public java.lang.String toString()
Formats object to string- Overrides:
toString
in classjava.lang.Object
- Returns:
- Object string
-
iterator
public java.util.Iterator<TextureSlot> iterator()
Gets the enumerator to enumerate internal texture slots.- Specified by:
iterator
in interfacejava.lang.Iterable<TextureSlot>
-
-