From 40147d253d0c6f392085519159631db73b61bd57 Mon Sep 17 00:00:00 2001 From: Daniel Hritzkiv Date: Thu, 19 Oct 2017 12:32:55 -0400 Subject: [PATCH] =?UTF-8?q?Prefer=20=E2=80=9CBLEND=E2=80=9D=20over=20?= =?UTF-8?q?=E2=80=9CMASK=E2=80=9D=20as=20an=20alphaMode=20default?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “BLEND” is a much nicer alphaMode value (if the hardware supports it – not a steep requirement) than “MASK” as mask is either fully opaque or fully transparent, depending on the alphaCutoff. This matches many other converters’ alphaMode default. --- code/glTF2Exporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/glTF2Exporter.cpp b/code/glTF2Exporter.cpp index ad0e2647a..46f201b52 100644 --- a/code/glTF2Exporter.cpp +++ b/code/glTF2Exporter.cpp @@ -475,7 +475,7 @@ void glTF2Exporter::ExportMaterials() if (mat->Get(AI_MATKEY_OPACITY, opacity) == AI_SUCCESS) { if (opacity < 1) { - m->alphaMode = "MASK"; + m->alphaMode = "BLEND"; m->pbrMetallicRoughness.baseColorFactor[3] *= opacity; } }