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

ValueDescription
MAP_SPECULARRepresents the specular texture map slot
MAP_DIFFUSERepresents the diffuse texture map slot
MAP_EMISSIVERepresents the emissive texture map slot
MAP_AMBIENTRepresents the ambient texture map slot
MAP_NORMALRepresents the normal (bump) texture map slot

Methods

SignatureDescription
__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