double-sided CAD models

This commit is contained in:
Yeicor
2024-02-25 11:23:11 +01:00
parent dfff9720dc
commit f22e19fb3d
4 changed files with 15 additions and 9 deletions

View File

@@ -55,7 +55,7 @@ class GLTFMgr:
new_material: Material
if kind == "face":
new_material = Material(name="face", alphaCutoff=None, pbrMetallicRoughness=PbrMetallicRoughness(
baseColorTexture=TextureInfo(index=0), baseColorFactor=[1, 1, 0.5, 1]))
baseColorTexture=TextureInfo(index=0), baseColorFactor=[1, 1, 0.5, 1]), doubleSided=True)
elif kind == "edge":
new_material = Material(name="edge", alphaCutoff=None, pbrMetallicRoughness=PbrMetallicRoughness(
baseColorFactor=[0, 0, 0.5, 1]))