diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-12 00:39:13 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-12 00:39:13 +0100 |
| commit | e16e9dd41b7487753889fb9c86b5c4cbe3eaf3fd (patch) | |
| tree | 7f51ddcf17920bb537e45087165548119f5d5b59 /src/test_demo.cc | |
| parent | 87329c7cc7c779446d9f6ce56a9204462882fefc (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'src/test_demo.cc')
| -rw-r--r-- | src/test_demo.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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<f32>, - _pad0: f32, - _pad1: f32, aspect_ratio: f32, time: f32, - beat: f32, + beat_time: f32, + beat_phase: f32, audio_intensity: f32, + _pad: f32, }; struct EffectParams { |
