add support for rendering vertices

This commit is contained in:
Yeicor
2024-02-24 23:26:45 +01:00
parent 7e9e579e46
commit b3160fe3d3
2 changed files with 35 additions and 7 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.5, 0.5, 0.5, 1]))
baseColorFactor=[0, 0.2, 0, 1]))
else:
raise ValueError(f"Unknown material kind {kind}")
self.gltf.materials.append(new_material)