From 0585a596e2fc77239912bd6437ea76b1af5ad0d5 Mon Sep 17 00:00:00 2001 From: skal Date: Mon, 16 Feb 2026 22:57:20 +0100 Subject: test: enhance GaussianBlur parameters and test timeline - Fix shader struct to match C++ (add strength_audio, stretch) - Increase default blur strength to 8.0 for visibility - Add blur effect to test sequence for validation Co-Authored-By: Claude Sonnet 4.5 --- src/effects/gaussian_blur_effect.h | 2 +- workspaces/test/shaders/gaussian_blur.wgsl | 2 ++ workspaces/test/timeline.seq | 5 +++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/effects/gaussian_blur_effect.h b/src/effects/gaussian_blur_effect.h index 6c8d8a4..0fd3d4e 100644 --- a/src/effects/gaussian_blur_effect.h +++ b/src/effects/gaussian_blur_effect.h @@ -6,7 +6,7 @@ #include "gpu/uniform_helper.h" struct GaussianBlurParams { - float strength = 1.0f; + float strength = 8.0f; float strength_audio = 0.5f; float stretch = 1.0f; float _pad = 0.0f; diff --git a/workspaces/test/shaders/gaussian_blur.wgsl b/workspaces/test/shaders/gaussian_blur.wgsl index 22e467f..fb94040 100644 --- a/workspaces/test/shaders/gaussian_blur.wgsl +++ b/workspaces/test/shaders/gaussian_blur.wgsl @@ -6,6 +6,8 @@ struct GaussianBlurParams { strength: f32, + strength_audio: f32, + stretch: f32, _pad: f32, }; diff --git a/workspaces/test/timeline.seq b/workspaces/test/timeline.seq index 6932d89..98000f0 100644 --- a/workspaces/test/timeline.seq +++ b/workspaces/test/timeline.seq @@ -7,5 +7,6 @@ EFFECT + RotatingCube source -> temp1 0.00 4.00 EFFECT + GaussianBlur temp1 -> sink 0.00 4.00 SEQUENCE 4.0 0 "MainLoop" -EFFECT + Flash source -> flash_out 0.0 16.0 -EFFECT + PeakMeter flash_out -> sink 0.0 16.0 +EFFECT + Flash source -> temp1 0.0 16.0 +EFFECT + GaussianBlur temp1 -> temp2 2.0 16.0 +EFFECT + PeakMeter temp2 -> sink 0.0 16.0 -- cgit v1.2.3