blender/intern/cycles/kernel/light
Weizhen Huang bb689687a7 Fix #140892: Cycles: equiangular sampling numerical issue
When `delta` is significantly larger than the difference between `tmin`
and `tmax`, the precision of `theta_a` and `theta_b` reduces, resulting
in banding artefacts.

For equiangular sampling, we use uniform sampling to fix this case.

For light tree, we use the equality
atan(a) + atan(b) = atan2(a + b, 1 - a*b).

Pull Request: https://projects.blender.org/blender/blender/pulls/142845
2025-07-23 12:56:11 +02:00
..
area.h Cleanup: Fix various divisions by zero reported by ASAN 2025-03-06 22:34:23 +01:00
background.h Cleanup: spelling in comments (make check_spelling_*) 2025-03-21 11:51:50 +11:00
common.h Cycles: Refactor lights to be objects 2025-02-24 23:44:14 +01:00
distant.h Cycles: Refactor lights to be objects 2025-02-24 23:44:14 +01:00
distribution.h Refactor: Cycles: Add const keyword where possible, using clang-tidy 2025-01-03 10:23:20 +01:00
light.h Fix #135086: Light ray visibility not taken into account without light tree 2025-02-25 17:24:04 +01:00
point.h Cleanup: Unused arguments in Cycles kernel 2025-05-27 21:30:45 +02:00
sample.h Cleanup: Unused arguments in Cycles kernel 2025-05-27 21:30:45 +02:00
spot.h Cleanup: Fix various divisions by zero reported by ASAN 2025-03-06 22:34:23 +01:00
tree.h Fix #140892: Cycles: equiangular sampling numerical issue 2025-07-23 12:56:11 +02:00
triangle.h Cycles: Refactor lights to be objects 2025-02-24 23:44:14 +01:00