a2bb547b9ac9ba34b0adfa1369ddc4f0f7ea50f7
For spherical spot light, when the shading point is close to the light source, we switch to sampling the light spread instead of the visible cone from the shading point. This has the benefit of less noise when the spread is small. However, the light spread sampling was not considering non-uniform object scaling, where the actual spread might be different. This patch switches sampling method only when the smallest enclosing spread cone is smaller than the visible cone from the shading point. An alternative method would be to compute the actual solid angle of the scaled cone, and sample from the scaled cone. However, that involves ray transformation and modifying the sampling pdf and angle. Since non-uniform scaling is rather a niche case, it's probably not worth the computation effort. Pull Request: https://projects.blender.org/blender/blender/pulls/119661
…
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%
