Commit: a4eab80c224ba3c4a12b66e148c764c389df1b9d
Author: Weizhen Huang
Date: Wed Nov 23 17:01:07 2022 +0100
Branches: soc-2022-many-lights-sampling
https://developer.blender.org/rBa4eab80c224ba3c4a12b66e148c764c389df1b9d
Fix back face being sampling despite disabled via EmissionSampling
===================================================================
M intern/cycles/kernel/light/tree.h
===================================================================
diff --git a/intern/cycles/kernel/light/tree.h
b/intern/cycles/kernel/light/tree.h
index e1498486f84..dc7c1b3219a 100644
--- a/intern/cycles/kernel/light/tree.h
+++ b/intern/cycles/kernel/light/tree.h
@@ -267,6 +267,10 @@ ccl_device void
light_tree_emitter_importance(KernelGlobals kg,
}
theta_o = 0.0f;
+ if (dot(bcone_axis, point_to_centroid) > 0) {
+ return;
+ }
+
for (int i = 0; i < 3; i++) {
const float3 corner = vertices[i];
float distance_point_to_corner;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs