diff options
author | Matteo Falduto <matteolegna> | 2021-04-01 06:35:56 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-04-01 13:31:01 +0300 |
commit | a4260ac21977acd5b9cd792f2a68c3aa78dd91cd (patch) | |
tree | 61bdd5358e5279ddb9c13c53bb3079d1d8f79b65 /source/blender/makesdna/DNA_light_defaults.h | |
parent | c859e1afa0dcca1a495c6b25d00bab65bf94be0b (diff) |
Cycles: add a spread setting for area lights
This simulates the effect of a honeycomb or grid placed in front of a softbox.
In practice, it works by attenuating rays coming off-angle as a function of the
provided spread angle parameter.
Setting the parameter to 180 degrees poses no restrictions to the rays, making
the light behave the same way as before this patch.
The total light power is normalized based on the spread angle, so that the
light strength remains the same.
Differential Revision: https://developer.blender.org/D10594
Diffstat (limited to 'source/blender/makesdna/DNA_light_defaults.h')
-rw-r--r-- | source/blender/makesdna/DNA_light_defaults.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_light_defaults.h b/source/blender/makesdna/DNA_light_defaults.h index f3ccf14ac5b..5e5ce4bf540 100644 --- a/source/blender/makesdna/DNA_light_defaults.h +++ b/source/blender/makesdna/DNA_light_defaults.h @@ -68,6 +68,7 @@ .volume_fac = 1.0f, \ .att_dist = 40.0f, \ .sun_angle = DEG2RADF(0.526f), \ + .area_spread = DEG2RADF(180.0f), \ } /** \} */ |