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 /release | |
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 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_light.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_light.py b/release/scripts/startup/bl_ui/properties_data_light.py index cf894b48e1e..d5e0ecd9a4f 100644 --- a/release/scripts/startup/bl_ui/properties_data_light.py +++ b/release/scripts/startup/bl_ui/properties_data_light.py @@ -97,7 +97,12 @@ class DATA_PT_EEVEE_light(DataButtonsPanel, Panel): col = layout.column() col.prop(light, "color") col.prop(light, "energy") + + col.separator() + + col.prop(light, "diffuse_factor", text="Diffuse") col.prop(light, "specular_factor", text="Specular") + col.prop(light, "volume_factor", text="Volume") col.separator() |