blender/intern/cycles/kernel/light
Weizhen Huang b454416927 Cycles: add non-uniform scaling to spot light size
Cycles ignores the size of spot lights, therefore the illuminated area doesn't match the gizmo. This patch resolves this discrepancy.
| Before (Cycles) | After (Cycles) | Eevee
|{F14200605}|{F14200595}|{F14200600}|
This is done by scaling the ray direction by the size of the cone. The implementation of `spot_light_attenuation()` in `spot.h` matches `spot_attenuation()` in `lights_lib.glsl`.
**Test file**:
{F14200728}

Differential Revision: https://developer.blender.org/D17129
2023-02-03 18:51:14 +01:00
..
area.h Cycles: Cleanup: Add general-purpose conversion between sin and cos 2023-01-24 17:59:29 +01:00
background.h Cycles: improve many lights sampling using light tree 2022-12-05 16:09:03 +01:00
common.h Cycles: using concentric mapping when sampling disk 2022-12-12 17:15:55 +01:00
distant.h Cycles: improve many lights sampling using light tree 2022-12-05 16:09:03 +01:00
distribution.h Cycles: switch from pretabulated 2D PMJ02 to pretabulated 4D Sobol 2022-12-14 17:39:13 +01:00
light.h Fix Cycles ellipse area light returns zero pdf in volume segment 2022-12-12 21:38:23 +01:00
point.h Cycles: improve many lights sampling using light tree 2022-12-05 16:09:03 +01:00
sample.h Cleanup: Remove unused light_sample_is_light() function. 2023-01-20 17:36:48 +01:00
spot.h Cycles: add non-uniform scaling to spot light size 2023-02-03 18:51:14 +01:00
tree.h Cycles: Cleanup: Add general-purpose conversion between sin and cos 2023-01-24 17:59:29 +01:00
triangle.h Cycles: Cleanup: Add general-purpose conversion between sin and cos 2023-01-24 17:59:29 +01:00