]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_scene.py
Allow creating sequences without size
[libs/gl.git] / blender / io_mspgl / export_scene.py
index 77755a65b7479353958f36ebee02c8f77635a1bd..ee9c8c2ff340135e62567061df30dfecb9e3a6eb 100644 (file)
@@ -108,7 +108,7 @@ class SceneExporter:
                        resources[lighting_name] = lighting_res
 
        def export_sequence(self, scene, resources):
-               from .datafile import Resource, Statement
+               from .datafile import Resource, Statement, Token
                seq_res = Resource(scene.name+".seq", "sequence")
 
                if scene.use_hdr:
@@ -118,12 +118,18 @@ class SceneExporter:
                if scene.background_set:
                        content = resources[scene.name+".wrapper.scene"]
 
-               ss = Statement("pass", "", "content")
-               ss.sub.append(Statement("depth_test", "lequal"))
+               ss = Statement("step", "", "content")
+               ss.sub.append(Statement("depth_test", Token("LEQUAL")))
                ss.sub.append(seq_res.create_reference_statement("lighting", resources[scene.name+".lightn"]))
                ss.sub.append(seq_res.create_reference_statement("scene", content))
                seq_res.statements.append(ss)
 
+               if scene.use_ao:
+                       ss = Statement("ambient_occlusion")
+                       ss.sub.append(Statement("occlusion_radius", scene.ao_distance))
+                       ss.sub.append(Statement("samples", scene.ao_samples))
+                       seq_res.statements.append(ss)
+
                if scene.use_hdr:
                        seq_res.statements.append(Statement("bloom"))
                        ss = Statement("colorcurve")