diff options
author | Greg <gregzzmail@gmail.com> | 2016-08-09 12:35:29 +0300 |
---|---|---|
committer | Greg <gregzzmail@gmail.com> | 2016-08-09 12:35:29 +0300 |
commit | 9bb36cdc52284aba5f056716aebdb373330ec9dc (patch) | |
tree | 1128be233407824f20c1260d7e32ef649e38f856 /node_wrangler.py | |
parent | 8329c6626086ec248fd540b295a7886a31dee386 (diff) |
Node Wrangler: Viewer node now compensates for film/CM exposure to avoid misleading the user
Diffstat (limited to 'node_wrangler.py')
-rw-r--r-- | node_wrangler.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node_wrangler.py b/node_wrangler.py index 36fa9e8a..d289bc10 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])) |