From: Mikko Rasa Date: Mon, 10 Oct 2022 07:23:46 +0000 (+0300) Subject: Disable depth writes for blended rendering steps X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=5d48217dd9193198e1925ec3b78f4f2e539e0011;p=libs%2Fgl.git Disable depth writes for blended rendering steps --- diff --git a/blender/io_mspgl/export_scene.py b/blender/io_mspgl/export_scene.py index dce52f01..d2cc48fc 100644 --- a/blender/io_mspgl/export_scene.py +++ b/blender/io_mspgl/export_scene.py @@ -278,7 +278,13 @@ class SceneExporter: for t in tags: st = Statement("step", t, renderable) - st.sub.append(Statement("depth_test", Token("LEQUAL"))) + if t=="blended": + ss = Statement("depth_test") + ss.sub.append(Statement("compare", Token("LEQUAL"))) + ss.sub.append(Statement("write", False)) + st.sub.append(ss) + else: + st.sub.append(Statement("depth_test", Token("LEQUAL"))) if lighting: st.sub.append(seq_res.create_reference_statement("lighting", lighting)) seq_res.statements.append(st)