blender/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
..
alembic.cpp Cleanup: add verbose logging category names instead of numbers 2022-06-17 14:08:14 +02:00
alembic.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
alembic_read.cpp Cleanup: fix source typos homogenous->homogeneous 2022-03-11 18:27:58 +01:00
alembic_read.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
attribute.cpp Cycles: fix missing attribute update 2022-06-02 16:42:53 +02:00
attribute.h Cycles: fix missing attribute update 2022-06-02 16:42:53 +02:00
background.cpp Refactor: Cycles light sampling code reorganization 2022-11-30 21:19:51 +01:00
background.h Cycles: Add support for light groups 2022-04-02 06:14:27 +02:00
bake.cpp Cycles: add option to bake specular from active camera viewpoint 2022-10-03 21:59:31 +02:00
bake.h Cycles: add option to bake specular from active camera viewpoint 2022-10-03 21:59:31 +02:00
camera.cpp Fix T88849: Motion blur in cycles leaves bright edge on trailing end of blur 2023-01-09 03:08:36 +01:00
camera.h Cycles: add support for volume motion blur 2022-04-19 17:07:53 +02:00
CMakeLists.txt Cycles: switch from pretabulated 2D PMJ02 to pretabulated 4D Sobol 2022-12-14 17:39:13 +01:00
colorspace.cpp Fix Cycles standalone float textures not taking into account colorspace metadata 2022-12-07 18:34:57 +01:00
colorspace.h Fix Cycles standalone float textures not taking into account colorspace metadata 2022-12-07 18:34:57 +01:00
constant_fold.cpp Fix T103066: Cycles missing full constant foler for mix float and mix vector 2022-12-12 18:28:09 +01:00
constant_fold.h Fix T103066: Cycles missing full constant foler for mix float and mix vector 2022-12-12 18:28:09 +01:00
curves.cpp Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
curves.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
film.cpp Fix wrong Cycles standalone exposure default value, should be 1 2022-12-12 18:28:09 +01:00
film.h Cycles: Add support for light groups 2022-04-02 06:14:27 +02:00
geometry.cpp Fix T104240: OptiX OSL texture loading broken with displacement 2023-01-31 16:41:00 +01:00
geometry.h Cycles: Remove separate OSL attribute map and instead always use SVM attribute map 2022-09-09 15:35:44 +02:00
hair.cpp Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
hair.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
image.cpp Cycles: Add support for OSL texture intrinsic on the GPU 2023-01-19 19:14:48 +01:00
image.h Cycles: Add support for OSL texture intrinsic on the GPU 2023-01-19 19:14:48 +01:00
image_oiio.cpp Fix T102942: Cycles wrong alpha for multi-layer PSD files 2023-01-09 19:05:24 +01:00
image_oiio.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
image_sky.cpp Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
image_sky.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
image_vdb.cpp Cleanup: add verbose logging category names instead of numbers 2022-06-17 14:08:14 +02:00
image_vdb.h Cycles: Add half precision float support for volumes with NanoVDB 2022-05-23 19:08:01 +02:00
integrator.cpp Cycles: limit the internal sample index of Sobol-Burley for performance 2022-12-14 17:39:13 +01:00
integrator.h Cycles: improve many lights sampling using light tree 2022-12-05 16:09:03 +01:00
light.cpp Cycles: add non-uniform scaling to spot light size 2023-02-03 18:51:14 +01:00
light.h Cycles: improve sampling of ellipse area light with spread 2022-12-07 18:21:55 +01:00
light_tree.cpp Cycles: add non-uniform scaling to spot light size 2023-02-03 18:51:14 +01:00
light_tree.h Cleanup: spelling in comments 2022-12-08 13:47:55 +11:00
mesh.cpp Cycles: unify math functions names 2022-06-23 15:02:53 +02:00
mesh.h Cycles: Add Hydra render delegate 2022-03-23 16:39:05 +01:00
mesh_displace.cpp Cycles: switch Cycles triangle barycentric convention to match Embree/OptiX 2022-07-27 21:03:33 +02:00
mesh_subdivision.cpp Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
object.cpp Fix T102313: Enabling shadow catcher in viewport render shows self-shadowing 2023-01-11 21:36:46 +01:00
object.h Cycles: Add support for light groups 2022-04-02 06:14:27 +02:00
osl.cpp Fix T104157: Deleting an active OSL node causes issues 2023-01-27 16:14:25 +01:00
osl.h Cycles: Add basic support for using OSL with OptiX 2022-11-09 15:30:21 +01:00
particles.cpp Cleanup: add verbose logging category names instead of numbers 2022-06-17 14:08:14 +02:00
particles.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
pass.cpp Cycles: remove shadow pass 2022-12-05 15:52:10 +01:00
pass.h Cycles: Add support for light groups 2022-04-02 06:14:27 +02:00
pointcloud.cpp Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
pointcloud.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
procedural.cpp Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
procedural.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
scene.cpp Fix T103170: missing Cycles viewport light threshold update after exposure edit 2022-12-15 19:13:55 +01:00
scene.h Cycles: improve many lights sampling using light tree 2022-12-05 16:09:03 +01:00
shader.cpp Fix anisotropic Beckmann regression test failing on Metal 2023-01-19 20:12:05 +01:00
shader.h Fix anisotropic Beckmann regression test failing on Metal 2023-01-19 20:12:05 +01:00
shader_graph.cpp Cleanup: add verbose logging category names instead of numbers 2022-06-17 14:08:14 +02:00
shader_graph.h Cycles: new setting and heuristics for mesh light importance sampling 2022-11-30 21:19:51 +01:00
shader_nodes.cpp Fix T103094: Cycles ignores small suns in Nishita sky 2023-01-19 18:31:54 -06:00
shader_nodes.h Fix T103094: Cycles ignores small suns in Nishita sky 2023-01-19 18:31:54 -06:00
stats.cpp Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
stats.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
svm.cpp Cycles: new setting and heuristics for mesh light importance sampling 2022-11-30 21:19:51 +01:00
svm.h Cycles: keep track of SVM nodes used in kernels 2022-07-15 13:40:04 +02:00
tables.cpp Cleanup: add verbose logging category names instead of numbers 2022-06-17 14:08:14 +02:00
tables.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
tabulated_sobol.cpp Cycles: switch from pretabulated 2D PMJ02 to pretabulated 4D Sobol 2022-12-14 17:39:13 +01:00
tabulated_sobol.h Cycles: switch from pretabulated 2D PMJ02 to pretabulated 4D Sobol 2022-12-14 17:39:13 +01:00
volume.cpp Fix: Build error in Cycles with OpenVDB turned off 2022-08-31 18:06:13 -05:00
volume.h Cycles: add support for volume motion blur 2022-04-19 17:07:53 +02:00