get_texture method
get_texture
Gets the texture from the specified slot, it can be material’s property name or shader’s parameter name
Returns
The texture.
def get_texture(self, slot_name):
...
Parameter | Type | Description |
---|---|---|
slot_name | str | Slot name. |
Example
from aspose import pycore
from aspose.threed.shading import LambertMaterial, Material, Texture
mat = LambertMaterial()
tex = Texture()
tex.file_name = "diffuse.png"
mat.set_texture(Material.MAP_DIFFUSE, tex)
tex = pycore.cast(Texture, mat.get_texture(Material.MAP_DIFFUSE))
See Also
- module
aspose.threed.shading
- class
PbrSpecularMaterial