0
0
forked from blender/blender
blender/intern/cycles
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
..
app Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine") 2023-05-02 09:37:49 +10:00
blender Fix #117485: Crash rendering motion blur with changing curve count 2024-03-12 13:30:12 +01:00
bvh Fix #110170: Cycles CUDA cloud rendering artifacts with spatial splits 2023-08-09 17:12:51 +02:00
cmake Fix compilation error with oneAPI disabled and GPU Embree enabled 2023-06-14 18:20:45 +02:00
device Cycles: oneAPI: Fix driver version check for future Intel GPU drivers 2024-07-09 12:28:44 +02:00
doc Cleanup: cmake formatting 2022-12-17 13:33:27 +11:00
graph Clang-Format: Allow empty functions to be single-line 2023-03-29 16:50:54 +02:00
hydra Fix #107932: crash attempting to load invalid OpenVDB file path on macOS 2023-05-24 17:47:27 +02:00
integrator Fix 114336: Cycles crash switching render pass in the viewport 2023-11-14 09:59:19 +01:00
kernel Build: Upgrade Intel Graphics Compiler to 1.0.15468 on Linux 2024-03-12 12:59:15 +01:00
scene Fix #125168: Cycles spot light theata_e can flip with a wide spread 2024-08-16 14:04:44 +02:00
session Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine") 2023-05-02 09:37:49 +10:00
subd Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine") 2023-05-02 09:37:49 +10:00
test Cleanup: remove redundant lerp function, mix already does the same 2023-05-12 21:00:52 +02:00
util Fix: Increase thread stack size for musl libc 2023-11-22 19:47:18 +01:00
CMakeLists.txt Cycles: add HIP RT device, for AMD hardware ray tracing on Windows 2023-04-25 20:19:43 +02:00