From: Mikko Rasa Date: Sat, 23 Apr 2022 21:31:03 +0000 (+0300) Subject: Use alpha to coverage when exporting materials with alpha cutoff X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c0b39b49c15845d5f239ab65262a51835a6ca1c9;p=libs%2Fgl.git Use alpha to coverage when exporting materials with alpha cutoff --- diff --git a/blender/io_mspgl/export_material.py b/blender/io_mspgl/export_material.py index 64d11b86..4c40757f 100644 --- a/blender/io_mspgl/export_material.py +++ b/blender/io_mspgl/export_material.py @@ -88,6 +88,10 @@ class MaterialExporter: if blend_st: st.sub.append(blend_st) + elif material.alpha_cutoff>0.0: + ss = Statement("blend") + ss.sub.append(Statement("alpha_to_coverage", True)) + st.sub.append(ss) if material.receive_shadows: st.sub.append(Statement("receive_shadows", True)) if material.image_based_lighting: