From c49e9e1773c0c94fdaf959d35c29c26ca67a9a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 1 Jul 2025 12:41:02 +0200 Subject: [PATCH] Fix: Workbench: Incomplete commit 5231f0c02a5ac35271394962f3a8c6e86ca4d13e The commit didn't include the other part of the fix and included an invalid changed line. --- .../eevee/shaders/eevee_depth_of_field_accumulator_lib.glsl | 2 +- .../engines/workbench/shaders/workbench_effect_taa_frag.glsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/draw/engines/eevee/shaders/eevee_depth_of_field_accumulator_lib.glsl b/source/blender/draw/engines/eevee/shaders/eevee_depth_of_field_accumulator_lib.glsl index 59a8691adbf..4f095400f32 100644 --- a/source/blender/draw/engines/eevee/shaders/eevee_depth_of_field_accumulator_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/eevee_depth_of_field_accumulator_lib.glsl @@ -428,7 +428,7 @@ void dof_gather_init(float base_radius, /* TODO(fclem) Seems like the default lod selection is too big. Bias to avoid blocky moving out * of focus shapes. */ constexpr float lod_bias = -2.0f; - lod = max(floor(log2(base_radius * unit_sample_radius) + 1.0f) + lod_bias, 0.0f); + lod = max(floor(log2(base_radius * unit_sample_radius) + 0.5f) + lod_bias, 0.0f); if (no_gather_mipmaps) { lod = 0.0f; diff --git a/source/blender/draw/engines/workbench/shaders/workbench_effect_taa_frag.glsl b/source/blender/draw/engines/workbench/shaders/workbench_effect_taa_frag.glsl index 9fae94b0667..393456cc10f 100644 --- a/source/blender/draw/engines/workbench/shaders/workbench_effect_taa_frag.glsl +++ b/source/blender/draw/engines/workbench/shaders/workbench_effect_taa_frag.glsl @@ -21,7 +21,7 @@ void main() /* Clamp infinite inputs (See #112211). */ color = clamp(color, float4(0.0f), float4(1e10f)); /* Use log2 space to avoid highlights creating too much aliasing. */ - color = log2(color + 0.5f); + color = log2(color + 1.0f); frag_color += color * samplesWeights[i]; }