pygfx.materials.material_from_trimesh

pygfx.materials.material_from_trimesh(material)

Convert a Trimesh material object into a pygfx material.

Parameters:

material (trimesh.Material) – The material to convert.

Returns:

converted – The converted material.

Return type:

Material

Examples