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
..
2022-03-11 18:27:58 +01:00
2022-02-11 17:47:34 +01:00
2022-06-17 14:08:14 +02:00
2022-02-11 17:47:34 +01:00
2022-06-02 16:42:53 +02:00
2022-06-02 16:42:53 +02:00
2022-11-30 21:19:51 +01:00
2022-04-02 06:14:27 +02:00
2022-10-03 21:59:31 +02:00
2022-10-03 21:59:31 +02:00
2023-01-09 03:08:36 +01:00
2022-04-19 17:07:53 +02:00
2022-12-14 17:39:13 +01:00
2022-12-07 18:34:57 +01:00
2022-12-07 18:34:57 +01:00
2022-12-12 18:28:09 +01:00
2022-12-12 18:28:09 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-12-12 18:28:09 +01:00
2022-04-02 06:14:27 +02:00
2023-01-31 16:41:00 +01:00
2022-09-09 15:35:44 +02:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2023-01-09 19:05:24 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-06-17 14:08:14 +02:00
2022-05-23 19:08:01 +02:00
2023-01-19 19:14:48 +01:00
2023-01-19 19:14:48 +01:00
2022-12-14 17:39:13 +01:00
2022-12-05 16:09:03 +01:00
2023-02-03 18:51:14 +01:00
2022-12-08 13:47:55 +11:00
2023-02-03 18:51:14 +01:00
2022-12-07 18:21:55 +01:00
2022-07-27 21:03:33 +02:00
2022-02-11 17:47:34 +01:00
2022-06-23 15:02:53 +02:00
2022-03-23 16:39:05 +01:00
2023-01-11 21:36:46 +01:00
2022-04-02 06:14:27 +02:00
2023-01-27 16:14:25 +01:00
2022-11-09 15:30:21 +01:00
2022-06-17 14:08:14 +02:00
2022-02-11 17:47:34 +01:00
2022-12-05 15:52:10 +01:00
2022-04-02 06:14:27 +02:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-12-15 19:13:55 +01:00
2022-12-05 16:09:03 +01:00
2022-06-17 14:08:14 +02:00
2022-11-30 21:19:51 +01:00
2023-01-19 18:31:54 -06:00
2023-01-19 18:31:54 -06:00
2023-01-19 20:12:05 +01:00
2023-01-19 20:12:05 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-11-30 21:19:51 +01:00
2022-07-15 13:40:04 +02:00
2022-06-17 14:08:14 +02:00
2022-02-11 17:47:34 +01:00
2022-12-14 17:39:13 +01:00
2022-12-14 17:39:13 +01:00
2022-08-31 18:06:13 -05:00
2022-04-19 17:07:53 +02:00