set_texture method
set_texture
Sets the texture to specified slot
def set_texture(self, slot_name, texture):
...
Parameter | Type | Description |
---|---|---|
slot_name | str | Slot name. |
texture | TextureBase | Texture. |
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
- module
aspose.threed.shading
- class
PbrSpecularMaterial