diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-12 14:41:23 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-13 16:56:10 +0300 |
commit | 21854575a4ede7d0c16fbe31ac90e66493f607fe (patch) | |
tree | 1a196b314cbd7f5eedd16caef6d1de43b0cd2837 /intern/cycles/render/light.h | |
parent | 7ad802cf3ae500bc72863b6dba0f28a488fce3d1 (diff) |
Cycles/Eevee: unify light strength and color
Cycles lights now use strength and color properties of the light outside
of the shading nodes, just like Eevee. The shading nodes then act as a
multiplier on this, and become optional unless textures, fallof or other
effects are desired.
Backwards compatibility is not exact, as we can't be sure which renderer
the .blend was designed for or even if it was designed for a single one.
If the render engine in the active scene is set to Cycles, lights are
converted to ensure overall light strength remains the same, and removing
unnecessary shader node setups that only included a single emission node.
If the engine is set to Eevee, we increase strength to remove the automatic
100x multiplier that was there to match Cycles.
Differential Revision: https://developer.blender.org/D4588
Diffstat (limited to 'intern/cycles/render/light.h')
-rw-r--r-- | intern/cycles/render/light.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/light.h b/intern/cycles/render/light.h index 66732000f3b..a7bffde7a8d 100644 --- a/intern/cycles/render/light.h +++ b/intern/cycles/render/light.h @@ -42,6 +42,7 @@ class Light : public Node { Light(); LightType type; + float3 strength; float3 co; float3 dir; |