From 26b3d7bb741bf27468bfad7224a3d06a72579a68 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 11 Mar 2022 11:25:46 +0200 Subject: [PATCH] Enable shadow map for the blended method when exporting Blended objects may want to receive shadows even though they can't cast them. --- blender/io_mspgl/export_scene.py | 1 + 1 file changed, 1 insertion(+) diff --git a/blender/io_mspgl/export_scene.py b/blender/io_mspgl/export_scene.py index 78ce2cbd..ac3bf0be 100644 --- a/blender/io_mspgl/export_scene.py +++ b/blender/io_mspgl/export_scene.py @@ -192,6 +192,7 @@ class SceneExporter: st = Statement("effect", "shadow_map") st.sub.append(Statement("type", Token("shadow_map"))) + st.sub.append(Statement("enable_for_method", "blended")) st.sub.append(Statement("size", *self.compute_shadowmap_size(shadowed_lights))) target, radius = self.compute_bounding_sphere(shadow_casters) st.sub.append(Statement("target", *target)) -- 2.45.2