From: Mikko Rasa Date: Sat, 24 Apr 2021 12:44:43 +0000 (+0300) Subject: Export exposure value from Blender's render settings X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=57232117bfab90f5dd80131daa47d2f184de9ae2;p=libs%2Fgl.git Export exposure value from Blender's render settings --- diff --git a/blender/io_mspgl/export_scene.py b/blender/io_mspgl/export_scene.py index 78ff3923..39a7428e 100644 --- a/blender/io_mspgl/export_scene.py +++ b/blender/io_mspgl/export_scene.py @@ -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: diff --git a/blender/io_mspgl/scene.py b/blender/io_mspgl/scene.py index dac43485..21d54c7b 100644 --- a/blender/io_mspgl/scene.py +++ b/blender/io_mspgl/scene.py @@ -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: