]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/scene.py
Support exporting ambient occlusion postprocessor from Blender
[libs/gl.git] / blender / io_mspgl / scene.py
index 7532f48ccdd82d88de86cafcef2b4fc9237d40d8..c89aa3df2e3950476cebace4e765a498123ce752 100644 (file)
@@ -28,10 +28,11 @@ class Scene:
                self.ambient_light = mathutils.Color((0.0, 0.0, 0.0))
                self.exposure = scene.view_settings.exposure
 
-               self.use_hdr = False
+               self.use_hdr = scene.use_hdr
+               self.use_ao = scene.eevee.use_gtao
+               self.ao_distance = scene.eevee.gtao_distance
+               self.ao_samples = scene.ao_samples
                if scene.world:
-                       self.use_hdr = scene.world.use_hdr
-
                        out_node = next((n for n in scene.world.node_tree.nodes if n.type=='OUTPUT_WORLD'), None)
                        if out_node:
                                from .util import get_linked_node_and_socket