set_texture method

set_texture

Sets the texture to specified slot

def set_texture(self, slot_name, texture):
    ...
ParameterTypeDescription
slot_namestrSlot name.
textureTextureBaseTexture.

Example

from aspose.threed.shading import LambertMaterial, Material, Texture

mat = LambertMaterial()
tex = Texture()
tex.file_name = "diffuse.png"
mat.set_texture(Material.MAP_NORMAL, tex)

See Also