From bb9e3df6d248dc91dff76b04fd16472cecafbee0 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 11 Jun 2024 14:07:03 +0200 Subject: [PATCH] Fix #122766: Add missing Fast GI options to raytracing presets The UI has changed and fast GI options was moved to the raytracing panel in the UI. When this was done they were not added to the raytracing presets what adds confusion when adding the presets. This PR adds the fast GI options to the presets. Pull Request: https://projects.blender.org/blender/blender/pulls/123061 --- scripts/presets/eevee/raytracing/Default.py | 9 +++++++++ scripts/startup/bl_operators/presets.py | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/scripts/presets/eevee/raytracing/Default.py b/scripts/presets/eevee/raytracing/Default.py index e1e5d73c3ce..e45bd426254 100644 --- a/scripts/presets/eevee/raytracing/Default.py +++ b/scripts/presets/eevee/raytracing/Default.py @@ -11,3 +11,12 @@ options.use_denoise = True options.denoise_spatial = True options.denoise_temporal = True options.denoise_bilateral = True +eevee.fast_gi_method = 'GLOBAL_ILLUMINATION' +eevee.fast_gi_resolution = '2' +eevee.fast_gi_ray_count = 2 +eevee.fast_gi_step_count = 8 +eevee.fast_gi_quality = 0.25 +eevee.fast_gi_distance = 0.0 +eevee.fast_gi_thickness_near = 0.25 +eevee.fast_gi_thickness_far = 0.7853981852531433 +eevee.fast_gi_bias = 0.05000000074505806 diff --git a/scripts/startup/bl_operators/presets.py b/scripts/startup/bl_operators/presets.py index 017b637339f..013a8377092 100644 --- a/scripts/startup/bl_operators/presets.py +++ b/scripts/startup/bl_operators/presets.py @@ -552,6 +552,15 @@ class AddPresetEEVEERaytracing(AddPresetBase, Operator): "options.denoise_spatial", "options.denoise_temporal", "options.denoise_bilateral", + "eevee.fast_gi_method", + "eevee.fast_gi_resolution", + "eevee.fast_gi_ray_count", + "eevee.fast_gi_step_count", + "eevee.fast_gi_quality", + "eevee.fast_gi_distance", + "eevee.fast_gi_thickness_near", + "eevee.fast_gi_thickness_far", + "eevee.fast_gi_bias", ] preset_subdir = "eevee/raytracing"