0
0
forked from blender/blender
blender/intern
Alaska 99618031b3 Fix #125168: Cycles spot light theata_e can flip with a wide spread
When the spread of a spot light is at it's maximum (180 degrees),
then `atan(tan(theta_e))` could become quite unpredictable due to
a asymtote in the tan function when working with lights with this
spread (because theta_e is `spread * 0.5 = pi/2`).
This lead to issues like theta_e for the spotlight becoming negative,
which lead to rendering errors due to a malformed light tree.

This commit fixes this issue by adding a episilon region around the
troublesome values and sets theta_e to `pi/2` when in that region.

Candidate for backporting to 4.2 and potentially 3.6

Pull Request: blender/blender#125172
2024-08-16 14:04:44 +02:00
..
atomic Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
audaspace CMake: fix AUDASPACE disabling WITH_PYTHON for Blender 2022-05-20 11:18:49 +10:00
clog Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine") 2023-05-02 09:37:49 +10:00
cycles Fix #125168: Cycles spot light theata_e can flip with a wide spread 2024-08-16 14:04:44 +02:00
dualcon Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine") 2023-05-02 09:37:49 +10:00
eigen Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
ffmpeg Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine") 2023-05-02 09:37:49 +10:00
ghost Fix #118351: Pixel Shift with Win32 Clipboard DibV5 Image Transfer 2024-03-11 13:50:17 +01:00
guardedalloc Build: fix NetBSD error in guardedalloc 2023-06-13 19:46:11 +02:00
iksolver Fix set but unused variable in IK solver 2023-04-19 10:02:09 +02:00
itasc Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
libc_compat Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
libmv Libmv: Remove FreeBSD sincos() workaround 2023-05-30 13:55:27 +02:00
locale Cleanup: move comments wrapped with MultiLine control statements 2023-05-02 09:54:48 +10:00
mantaflow Fix #106425: Mantaflow guiding with domains is broken 2024-02-14 13:47:12 +01:00
memutil Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
mikktspace Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine") 2023-05-02 09:37:49 +10:00
opencolorio Build: support OpenColorIO 2.3 2023-10-02 19:55:51 +02:00
opensubdiv Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine") 2023-05-02 09:37:49 +10:00
openvdb Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
quadriflow Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
renderdoc_dynload Cleanup: sort file, uppercase booleans, add missing headers 2023-05-17 13:13:10 +10:00
rigidbody Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine") 2023-05-02 09:37:49 +10:00
sky Cleanup: use C-style code comments, format 2023-03-03 16:29:22 +11:00
utfconv Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
wayland_dynload GHOST/Wayland: improve workaround for libdecor setting the window state 2022-11-16 12:31:29 +11:00
CMakeLists.txt Cleanup: sort file, uppercase booleans, add missing headers 2023-05-17 13:13:10 +10:00