From 57232117bfab90f5dd80131daa47d2f184de9ae2 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 24 Apr 2021 15:44:43 +0300 Subject: [PATCH] Export exposure value from Blender's render settings --- blender/io_mspgl/export_scene.py | 1 + blender/io_mspgl/scene.py | 1 + 2 files changed, 2 insertions(+) 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: -- 2.45.2