TextureSlot class

TextureSlot class

Texture slot in Material, can be enumerated through material instance.

The TextureSlot type exposes the following members:

Properties

PropertyDescription
slot_nameThe slot name that indicates where this texture will be bounded to.
textureThe 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