Material
Overview
Material is a enum in Aspose.3d for Python.
Inherits from: A3DObject.
Material texture slots are identified by the enum values MAP_SPECULAR, MAP_DIFFUSE, MAP_EMISSIVE, MAP_AMBIENT, and MAP_NORMAL.
Values
| Value | Description |
|---|---|
MAP_SPECULAR | Represents the specular texture map slot |
MAP_DIFFUSE | Represents the diffuse texture map slot |
MAP_EMISSIVE | Represents the emissive texture map slot |
MAP_AMBIENT | Represents the ambient texture map slot |
MAP_NORMAL | Represents the normal (bump) texture map slot |
Methods
| Signature | Description |
|---|---|
__init__(name: str) | |
get_texture(slot_name: str) | returns the texture assigned to the specified material slot, andMaterial.set_texture(slot_name, texture)` assigns a texture to that slot |
set_texture(slot_name: str, texture) | Assigns a texture to the specified slot name |