diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-11-15 20:13:07 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-11-15 20:16:30 +0300 |
commit | c2164e579c3dde8c0fbb42e0c146bfd5ad1b563b (patch) | |
tree | 631fedacdf5e4830acf2a54c6ab7bc4225e48f04 /source/blender/makesrna/intern/rna_scene.c | |
parent | 11b3954346b1e4ee2d70d8f4efa2e1a57c9fbef8 (diff) |
Eevee: Add irradiance smoothing
This is a parameter that will make the interpolation between irradiance
cells of a same Irradiance Volume smoother, reducing the weight of the
light leaking correction factors.
It is usefull in some cases to avoid harsh lighting transition that can
happen when a sample point it near a surface.
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 123ed562343..850560646ec 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -5682,6 +5682,12 @@ static void rna_def_scene_eevee(BlenderRNA *brna) "Size of the shadow map applied to each irradiance sample"); RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC); + prop = RNA_def_property(srna, "gi_irradiance_smoothing", PROP_FLOAT, PROP_FACTOR); + RNA_def_property_range(prop, 0.0f, FLT_MAX); + RNA_def_property_ui_range(prop, 0.0f, 1.0f, 5, 2); + RNA_def_property_float_default(prop, 0.1f); + RNA_def_property_ui_text(prop, "Irradiance Smoothing", "Smoother irradiance interpolation but introduce light bleeding"); + prop = RNA_def_property(srna, "gi_show_irradiance", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", SCE_EEVEE_SHOW_IRRADIANCE); RNA_def_property_boolean_default(prop, 0); |