TextureSlot class
TextureSlot class
Texture slot in Material, can be enumerated through material instance.
The TextureSlot type exposes the following members:
Properties
| Property | Description |
|---|---|
| slot_name | The slot name that indicates where this texture will be bounded to. |
| texture | The texture that will be bounded to the material. |
Example
from aspose.threed.shading import LambertMaterial, Material, Texture
mat = LambertMaterial()
tex = Texture()
tex.file_name = "diffuse.png"
mat.set_texture(Material.MAP_DIFFUSE, tex)
for slot in mat:
print(f"Texture slot {slot.slot_name} = {slot.texture}")
See Also
- module
aspose.threed.shading - class
Material