[Bf-blender-cvs] [1ce158c8297] soc-2022-many-lights-sampling: Cleanup: remove unused variable
Weizhen Huang
noreply at git.blender.org
Mon Nov 28 13:51:05 CET 2022
Commit: 1ce158c829756806a64ec829f272908d5342c454
Author: Weizhen Huang
Date: Mon Nov 28 13:50:53 2022 +0100
Branches: soc-2022-many-lights-sampling
https://developer.blender.org/rB1ce158c829756806a64ec829f272908d5342c454
Cleanup: remove unused variable
===================================================================
M intern/cycles/kernel/light/tree.h
===================================================================
diff --git a/intern/cycles/kernel/light/tree.h b/intern/cycles/kernel/light/tree.h
index 17c1df99b34..48225d45554 100644
--- a/intern/cycles/kernel/light/tree.h
+++ b/intern/cycles/kernel/light/tree.h
@@ -327,7 +327,6 @@ ccl_device void light_tree_emitter_importance(KernelGlobals kg,
min_distance = len(centroid - closest_point);
max_distance = min_distance;
float3 P_v;
- float t_v;
point_to_centroid = -compute_v(centroid, P, D, bcone_axis, t, P_v);
}
@@ -405,7 +404,6 @@ ccl_device void light_tree_node_importance(KernelGlobals kg,
/* minimal distance of the ray to the cluster */
distance = len(centroid - closest_point);
float3 P_v;
- float t_v;
point_to_centroid = -compute_v(centroid, P, D, bcone_axis, t, P_v);
cos_theta_u = light_tree_cos_bounding_box_angle(
bbox_min, bbox_max, P_v, D, point_to_centroid, bbox_is_visible);
More information about the Bf-blender-cvs
mailing list