From 97c9a4f77352936b3726ff4b460f30dc680ff276 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 27 Jan 2023 18:33:15 -0500 Subject: [PATCH] Alpha mode opaque --- opendm/gltf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendm/gltf.py b/opendm/gltf.py index df13bf48..673dc86b 100644 --- a/opendm/gltf.py +++ b/opendm/gltf.py @@ -256,7 +256,7 @@ def obj2glb(input_obj, output_glb, rtc=(None, None), draco_compression=True, _in textures += [pygltflib.Texture(source=len(images) - 1, sampler=0)] mat = pygltflib.Material(pbrMetallicRoughness=pygltflib.PbrMetallicRoughness(baseColorTexture=pygltflib.TextureInfo(index=len(textures) - 1), metallicFactor=0, roughnessFactor=1), - alphaMode=pygltflib.MASK) + alphaMode=pygltflib.OPAQUE) mat.extensions = { 'KHR_materials_unlit': {} }