EEVEE-Next: RNA: Rename horizon property to fast_gi

This avoid discrepancy between the UI and the API.
This commit is contained in:
Clément Foucault 2024-05-28 16:09:00 +02:00
parent 117bfc870d
commit c9c95e7e64
2 changed files with 7 additions and 6 deletions

@ -623,19 +623,19 @@ class RENDER_PT_eevee_next_gi_approximation(RenderButtonsPanel, Panel):
layout.use_property_decorate = False
layout.prop(props, "fast_gi_method")
layout.prop(props, "horizon_resolution", text="Resolution")
layout.prop(props, "fast_gi_resolution", text="Resolution")
col = layout.column(align=True)
col.prop(props, "fast_gi_ray_count", text="Rays")
col.prop(props, "fast_gi_step_count", text="Steps")
col.prop(props, "horizon_quality", text="Precision")
col.prop(props, "fast_gi_quality", text="Precision")
col = layout.column(align=True)
col.prop(props, "fast_gi_distance")
col.prop(props, "fast_gi_thickness_near", text="Thickness Near")
col.prop(props, "fast_gi_thickness_far", text="Far")
layout.prop(props, "horizon_bias", text="Bias")
layout.prop(props, "fast_gi_bias", text="Bias")
class RENDER_PT_eevee_next_denoise(RenderButtonsPanel, Panel):

@ -8318,7 +8318,7 @@ static void rna_def_scene_eevee(BlenderRNA *brna)
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, nullptr);
prop = RNA_def_property(srna, "horizon_quality", PROP_FLOAT, PROP_FACTOR);
prop = RNA_def_property(srna, "fast_gi_quality", PROP_FLOAT, PROP_FACTOR);
RNA_def_property_float_sdna(prop, nullptr, "gtao_quality");
RNA_def_property_ui_text(prop, "Trace Precision", "Precision of the horizon scan");
RNA_def_property_range(prop, 0.0f, 1.0f);
@ -8351,15 +8351,16 @@ static void rna_def_scene_eevee(BlenderRNA *brna)
"contribute to the fast GI approximation");
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, nullptr);
prop = RNA_def_property(srna, "horizon_bias", PROP_FLOAT, PROP_FACTOR);
prop = RNA_def_property(srna, "fast_gi_bias", PROP_FLOAT, PROP_FACTOR);
RNA_def_property_float_sdna(prop, nullptr, "gtao_focus");
RNA_def_property_ui_text(
prop, "Bias", "Bias the horizon angles to reduce self intersection artifacts");
RNA_def_property_range(prop, 0.0f, 1.0f);
RNA_def_property_ui_range(prop, 0.0f, 0.5f, 1.0f, 2);
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, nullptr);
prop = RNA_def_property(srna, "horizon_resolution", PROP_ENUM, PROP_NONE);
prop = RNA_def_property(srna, "fast_gi_resolution", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, nullptr, "gtao_resolution");
RNA_def_property_enum_items(prop, eevee_resolution_scale_items);
RNA_def_property_ui_text(prop,