瀏覽代碼

Prefer “BLEND” over “MASK” as an alphaMode default

“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.
Daniel Hritzkiv 8 年之前
父節點
當前提交
40147d253d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/glTF2Exporter.cpp

+ 1 - 1
code/glTF2Exporter.cpp

@@ -475,7 +475,7 @@ void glTF2Exporter::ExportMaterials()
 
 
             if (mat->Get(AI_MATKEY_OPACITY, opacity) == AI_SUCCESS) {
             if (mat->Get(AI_MATKEY_OPACITY, opacity) == AI_SUCCESS) {
                 if (opacity < 1) {
                 if (opacity < 1) {
-                    m->alphaMode = "MASK";
+                    m->alphaMode = "BLEND";
                     m->pbrMetallicRoughness.baseColorFactor[3] *= opacity;
                     m->pbrMetallicRoughness.baseColorFactor[3] *= opacity;
                 }
                 }
             }
             }