From e16e9dd41b7487753889fb9c86b5c4cbe3eaf3fd Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 12 Feb 2026 00:39:13 +0100 Subject: fix: update PeakMeterEffect uniform structure in test_demo The embedded shader in PeakMeterEffect was using the old uniform structure with _pad0/_pad1 instead of the new beat_time/beat_phase fields, causing the peak meter bar to not display correctly. Updated to match CommonPostProcessUniforms structure: - Removed _pad0, _pad1 - Added beat_time, beat_phase - Moved _pad to end Peak meter visualization now works correctly in test_demo. Co-Authored-By: Claude Sonnet 4.5 --- src/test_demo.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test_demo.cc') diff --git a/src/test_demo.cc b/src/test_demo.cc index edbcae0..595ca6a 100644 --- a/src/test_demo.cc +++ b/src/test_demo.cc @@ -33,12 +33,12 @@ class PeakMeterEffect : public PostProcessEffect { struct Uniforms { resolution: vec2, - _pad0: f32, - _pad1: f32, aspect_ratio: f32, time: f32, - beat: f32, + beat_time: f32, + beat_phase: f32, audio_intensity: f32, + _pad: f32, }; struct EffectParams { -- cgit v1.2.3