From a50514f7ec0aaf26b08b85aba44cfbe6c62207fa Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Mon, 15 Jul 2024 15:25:31 +0930 Subject: [PATCH] Flip panning --- shaders/audio_renderer.gdshader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/audio_renderer.gdshader b/shaders/audio_renderer.gdshader index 474eaf9..79d188d 100644 --- a/shaders/audio_renderer.gdshader +++ b/shaders/audio_renderer.gdshader @@ -198,7 +198,7 @@ vec4 render_song(sampler2D tex, int smp) { float samp = get_instrument_sample(instrument_idx, pitch_idx, t-t_start); samp *= velocity * attack_factor * release_factor; // TODO: proper decay and sustain, revisit release - downmixed_stereo += samp * vec2(1.0-pan, pan) * 0.5; // TODO: double it to maintain the mono level on each channel at center=0.5? + downmixed_stereo += samp * vec2(pan, 1.0-pan) * 0.5; // TODO: double it to maintain the mono level on each channel at center=0.5? } } }