diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2021-03-19 14:07:23 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2021-03-19 23:11:06 +0300 |
commit | 884f934a853f7043a7e5a6ea380d560c858a78b7 (patch) | |
tree | 14c4441579169bcc50de145d24dbff5ab206200a /source/blender/makesdna/DNA_light_defaults.h | |
parent | fb3e5b7f986e7215c6488c2b93db8559e84cfb98 (diff) |
EEVEE: Lights: Add Volume and diffuse light power slider
This adds 2 new sliders for light objects that modulates the diffuse
light and the volume light intensities.
This also changes the way volume light is computed using point lamp
representation. We use "Point Light Attenuation Without Singularity"
from Cem Yuksel instead of the usual inverse square law.
Diffstat (limited to 'source/blender/makesdna/DNA_light_defaults.h')
-rw-r--r-- | source/blender/makesdna/DNA_light_defaults.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_light_defaults.h b/source/blender/makesdna/DNA_light_defaults.h index 6ac52c1b356..f3ccf14ac5b 100644 --- a/source/blender/makesdna/DNA_light_defaults.h +++ b/source/blender/makesdna/DNA_light_defaults.h @@ -63,7 +63,9 @@ .contact_bias = 0.03f, \ .contact_spread = 0.2f, \ .contact_thickness = 0.2f, \ + .diff_fac = 1.0f, \ .spec_fac = 1.0f, \ + .volume_fac = 1.0f, \ .att_dist = 40.0f, \ .sun_angle = DEG2RADF(0.526f), \ } |