summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-16 22:57:20 +0100
committerskal <pascal.massimino@gmail.com>2026-02-16 22:57:20 +0100
commit0585a596e2fc77239912bd6437ea76b1af5ad0d5 (patch)
tree6494942a1267be3037f5cd74b8056573057f8db6
parent6c02074f22e941942b32e665e0c9c73587ab4a7b (diff)
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 <noreply@anthropic.com>
-rw-r--r--src/effects/gaussian_blur_effect.h2
-rw-r--r--workspaces/test/shaders/gaussian_blur.wgsl2
-rw-r--r--workspaces/test/timeline.seq5
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