[Bf-extensions-cvs] [9bb36cd] master: Node Wrangler: Viewer node now compensates for film/CM exposure to avoid misleading the user
Greg
noreply at git.blender.org
Tue Aug 9 11:47:42 CEST 2016
Commit: 9bb36cdc52284aba5f056716aebdb373330ec9dc
Author: Greg
Date: Tue Aug 9 11:35:29 2016 +0200
Branches: master
https://developer.blender.org/rBA9bb36cdc52284aba5f056716aebdb373330ec9dc
Node Wrangler: Viewer node now compensates for film/CM exposure to avoid misleading the user
===================================================================
M node_wrangler.py
===================================================================
diff --git a/node_wrangler.py b/node_wrangler.py
index 36fa9e8..d289bc1 100644
--- a/node_wrangler.py
+++ b/node_wrangler.py
@@ -1620,6 +1620,12 @@ class NWEmissionViewer(Operator, NWBase):
emission = emission_placeholder
make_links.append((active.outputs[out_i], emission.inputs[0]))
make_links.append((emission.outputs[0], materialout.inputs[0]))
+
+ # Set brightness of viewer to compensate for Film and CM exposure
+ intensity = 1/context.scene.cycles.film_exposure # Film exposure is a multiplier
+ intensity /= pow(2, (context.scene.view_settings.exposure)) # CM exposure is measured in stops/EVs (2^x)
+ emission.inputs[1].default_value = intensity
+
else:
# Output type is 'SHADER', no Viewer needed. Delete Viewer if exists.
make_links.append((active.outputs[out_i], materialout.inputs[1 if active.outputs[out_i].name == "Volume" else 0]))
More information about the Bf-extensions-cvs
mailing list