Commit: 084b52bcd8c9fde744985d753b36f4ba9804447f
Author: Brecht Van Lommel
Date:   Thu Jan 5 19:06:05 2023 +0100
Branches: master
https://developer.blender.org/rB084b52bcd8c9fde744985d753b36f4ba9804447f

Cycles: take into account IES texture node strength input for light tree

To better estimate light contribution. Note that estimating the texture
from the IES file is still missing.

Contributed by Alaska.

Differential Revision: https://developer.blender.org/D16901

===================================================================

M       intern/cycles/scene/shader.cpp

===================================================================

diff --git a/intern/cycles/scene/shader.cpp b/intern/cycles/scene/shader.cpp
index 09255d7cee4..e03b77917ef 100644
--- a/intern/cycles/scene/shader.cpp
+++ b/intern/cycles/scene/shader.cpp
@@ -263,8 +263,9 @@ static float3 output_estimate_emission(ShaderOutput 
*output, bool &is_constant)
 
     return estimate;
   }
-  else if (node->type == LightFalloffNode::get_node_type()) {
-    /* Light Falloff node. */
+  else if (node->type == LightFalloffNode::get_node_type() ||
+           node->type == IESLightNode::get_node_type()) {
+    /* Get strength from Light Falloff and IES texture node. */
     ShaderInput *strength_in = node->input("Strength");
     is_constant = false;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to