mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
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
|
||
|---|---|---|
| .. | ||
| area.h | ||
| background.h | ||
| common.h | ||
| distant.h | ||
| distribution.h | ||
| light.h | ||
| point.h | ||
| sample.h | ||
| spot.h | ||
| tree.h | ||
| triangle.h | ||