From: Mikko Rasa Date: Fri, 11 Mar 2022 09:25:46 +0000 (+0200) Subject: Enable shadow map for the blended method when exporting X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=26b3d7bb741bf27468bfad7224a3d06a72579a68;p=libs%2Fgl.git Enable shadow map for the blended method when exporting Blended objects may want to receive shadows even though they can't cast them. --- 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))