]> git.tdb.fi Git - libs/gl.git/commitdiff
Export exposure value from Blender's render settings
authorMikko Rasa <tdb@tdb.fi>
Sat, 24 Apr 2021 12:44:43 +0000 (15:44 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 24 Apr 2021 12:44:43 +0000 (15:44 +0300)
blender/io_mspgl/export_scene.py
blender/io_mspgl/scene.py

index 78ff3923c35ce59fb1b2ebe4d8783d4d18399174..39a7428e146652018c5db011f2e8007e08d0e06c 100644 (file)
@@ -126,6 +126,7 @@ class SceneExporter:
                if scene.use_hdr:
                        seq_res.statements.append(Statement("bloom"))
                        ss = Statement("colorcurve")
+                       ss.sub.append(Statement("exposure_adjust", scene.exposure))
                        ss.sub.append(Statement("srgb"))
                        seq_res.statements.append(ss)
                else:
index dac43485ae1dec825f1900fa172c0958550db833..21d54c7b25a1ea31cbd79acddd4e9a89e1f3fe91 100644 (file)
@@ -23,6 +23,7 @@ class Scene:
                self.prototypes = []
                self.instances = []
                self.lights = []
+               self.exposure = scene.view_settings.exposure
 
                self.use_hdr = False
                if scene.world: