diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-06-09 12:56:40 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-06-09 12:56:40 +0300 |
commit | ee93bc806ba8d51f754e20b30eb041fa4ec99b5f (patch) | |
tree | 8014e3a38f2936e9310e4417b931051ae08e9b6a /source | |
parent | 461ea375ad6d2dd4663bd7cba945c213c64c19dd (diff) |
Eevee DoF: Use more reasonable UI range for anamorphic bokeh
Regular camera lens have a ratio of 1.0. The anamorphic bokeh can be
used freely as an artistic decision, but it's nice to clamp it to 2.0,
to match real cameras.
That end up giving a reference for artistis playing with the
parameters unaware of the more realistic limits.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index e0c43dafda5..ee99e295feb 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -5894,7 +5894,7 @@ static void rna_def_gpu_dof_fx(BlenderRNA *brna) prop = RNA_def_property(srna, "ratio", PROP_FLOAT, PROP_NONE); RNA_def_property_ui_text(prop, "Ratio", "Distortion to simulate anamorphic lens bokeh"); RNA_def_property_range(prop, 0.0000001f, FLT_MAX); - RNA_def_property_ui_range(prop, 0.25f, 4.0f, 0.1, 3); + RNA_def_property_ui_range(prop, 1.0f, 2.0f, 0.1, 3); RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); prop = RNA_def_property(srna, "use_high_quality", PROP_BOOLEAN, PROP_NONE); |