This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/intern/cycles/scene
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-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +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-02-11 17:47:34 +01:00
2022-12-08 13:47:55 +11:00
2022-06-23 15:02:53 +02:00
2022-03-23 16:39:05 +01:00
2022-04-02 06:14:27 +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-02-11 17:47:34 +01:00