pygfx.materials.material_from_trimesh
- pygfx.materials.material_from_trimesh(x)
Convert a Trimesh object into a pygfx material.
- Parameters:
x (trimesh.Material | trimesh.Visuals | trimesh.Trimesh) – Either the actual material to convert or an object containing the material.
- Returns:
converted – The converted material.
- Return type: