blender/intern/cycles/kernel/geom
Weizhen Huang f9a75d1e40 Fix #122976: Cycles light linking broken for volumes with light tree
Light linking was never working correctly in volume segment with light
tree, because `sd->object` was not assigned, thus
`light_link_receiver_nee(kg, sd)` always returned `OBJECT_NONE`, causing
the light tree sample to fail. This problem was revealed by fdc2962beb
since now the same light is used for volume segment and volume.

Also ensure we don't sample position on the light if sampling from
volume segment is failed, by setting `emitter_id` to `EMITTER_NONE` in
such cases.

Pull Request: https://projects.blender.org/blender/blender/pulls/122999
2024-06-10 16:11:12 +02:00
..
attribute.h License headers: use SPDX-FileCopyrightText in intern/cycles 2023-06-14 16:53:23 +10:00
curve_intersect.h Cleanup: remove unused function parameters 2024-04-17 18:49:00 +02:00
curve.h Cycles: Dormant fixes for adaptive feature compilation 2024-04-30 12:56:22 +02:00
geom.h License headers: use SPDX-FileCopyrightText in intern/cycles 2023-06-14 16:53:23 +10:00
motion_curve.h Cleanup: remove unused function parameters 2024-04-17 18:49:00 +02:00
motion_point.h Cleanup: Cycles: use one fewer object struct member for motion data 2024-01-24 20:17:13 +01:00
motion_triangle_intersect.h Cleanup: remove unused function parameters 2024-04-17 18:49:00 +02:00
motion_triangle_shader.h Cleanup: remove unused function parameters 2024-04-17 18:49:00 +02:00
motion_triangle.h Cleanup: Cycles: use one fewer object struct member for motion data 2024-01-24 20:17:13 +01:00
object.h Cycles: Dormant fixes for adaptive feature compilation 2024-04-30 12:56:22 +02:00
patch.h Fix: temporarily disable Cycles patch map assert to avoid failing test 2024-01-04 04:06:19 +01:00
point_intersect.h License headers: use SPDX-FileCopyrightText in intern/cycles 2023-06-14 16:53:23 +10:00
point.h License headers: use SPDX-FileCopyrightText in intern/cycles 2023-06-14 16:53:23 +10:00
primitive.h Cycles: Dormant fixes for adaptive feature compilation 2024-04-30 12:56:22 +02:00
shader_data.h Fix #122976: Cycles light linking broken for volumes with light tree 2024-06-10 16:11:12 +02:00
subd_triangle.h Clang Format: bump to version 17 2024-01-03 13:38:14 +01:00
triangle_intersect.h Refactor: wrap block of codes into a function 2024-04-17 18:49:00 +02:00
triangle.h Fix #118466: Cycles renders black on Metal + AMD 2024-03-08 16:41:27 +01:00
volume.h License headers: use SPDX-FileCopyrightText in intern/cycles 2023-06-14 16:53:23 +10:00