Commit: ee93bc806ba8d51f754e20b30eb041fa4ec99b5f
Author: Dalai Felinto
Date:   Fri Jun 9 11:56:40 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBee93bc806ba8d51f754e20b30eb041fa4ec99b5f

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.

===================================================================

M       source/blender/makesrna/intern/rna_scene.c

===================================================================

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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to