diff options
author | Thomas Dinges <blender@dingto.org> | 2014-05-30 16:32:32 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-05-30 16:32:59 +0400 |
commit | 2c69f1e574587c2364e9a94b45d0b363ffeebf61 (patch) | |
tree | 0f32308e4c4dfe88a7a4fe7a98ecb9c5ba8116d3 /intern/cycles/kernel/shaders | |
parent | a26e41c0b9cda257a0470d40e022180fad98c239 (diff) |
Cleanup: Remove unused total power Emission code in Cycles, that was never exposed in the UI.
Differential Revision: https://developer.blender.org/D562
Diffstat (limited to 'intern/cycles/kernel/shaders')
-rw-r--r-- | intern/cycles/kernel/shaders/node_emission.osl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/intern/cycles/kernel/shaders/node_emission.osl b/intern/cycles/kernel/shaders/node_emission.osl index 2428da5ef4e..b28d731c19f 100644 --- a/intern/cycles/kernel/shaders/node_emission.osl +++ b/intern/cycles/kernel/shaders/node_emission.osl @@ -17,14 +17,10 @@ #include "stdosl.h" shader node_emission( - int TotalPower = 0, color Color = 0.8, float Strength = 1.0, output closure color Emission = 0) { - if (TotalPower) - Emission = ((Strength / surfacearea()) * Color) * emission(); - else - Emission = (Strength * Color) * emission(); + Emission = (Strength * Color) * emission(); } |