Blender Git Loki
Git Commits -> Revision 2185457
Revision 2185457 by Brecht Van Lommel (master) May 13, 2019, 13:56 (GMT) |
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 |
Commit Details:
Full Hash: 21854575a4ede7d0c16fbe31ac90e66493f607fe
Parent Commit: 7ad802c
Lines Changed: +131, -31
12 Modified Paths:
/intern/cycles/blender/addon/ui.py (+5, -2) (Diff)
/intern/cycles/blender/blender_object.cpp (+4, -0) (Diff)
/intern/cycles/blender/blender_shader.cpp (+2, -9) (Diff)
/intern/cycles/kernel/kernel_emission.h (+5, -0) (Diff)
/intern/cycles/kernel/kernel_types.h (+2, -0) (Diff)
/intern/cycles/render/light.cpp (+9, -2) (Diff)
/intern/cycles/render/light.h (+1, -0) (Diff)
/source/blender/blenkernel/BKE_blender_version.h (+1, -1) (Diff)
/source/blender/blenloader/intern/versioning_cycles.c (+97, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_lights.c (+3, -4) (Diff)
/source/blender/editors/object/object_add.c (+0, -6) (Diff)
/source/blender/editors/space_node/node_edit.c (+2, -7) (Diff)
/intern/cycles/blender/blender_object.cpp (+4, -0) (Diff)
/intern/cycles/blender/blender_shader.cpp (+2, -9) (Diff)
/intern/cycles/kernel/kernel_emission.h (+5, -0) (Diff)
/intern/cycles/kernel/kernel_types.h (+2, -0) (Diff)
/intern/cycles/render/light.cpp (+9, -2) (Diff)
/intern/cycles/render/light.h (+1, -0) (Diff)
/source/blender/blenkernel/BKE_blender_version.h (+1, -1) (Diff)
/source/blender/blenloader/intern/versioning_cycles.c (+97, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_lights.c (+3, -4) (Diff)
/source/blender/editors/object/object_add.c (+0, -6) (Diff)
/source/blender/editors/space_node/node_edit.c (+2, -7) (Diff)