add support for selecting vertices

This commit is contained in:
Yeicor
2024-02-24 23:38:58 +01:00
parent b3160fe3d3
commit dfff9720dc
3 changed files with 17 additions and 9 deletions

View File

@@ -61,7 +61,7 @@ class GLTFMgr:
baseColorFactor=[0, 0, 0.5, 1]))
elif kind == "vertex":
new_material = Material(name="vertex", alphaCutoff=None, pbrMetallicRoughness=PbrMetallicRoughness(
baseColorFactor=[0, 0.2, 0, 1]))
baseColorFactor=[0, 0.3, 0.3, 1]))
else:
raise ValueError(f"Unknown material kind {kind}")
self.gltf.materials.append(new_material)