90e83175ebbc317b40cad8ff2405fe4037152a4a
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: https://projects.blender.org/blender/blender/pulls/125172
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
