Commit: 59b70e77de249749888427ffbf0e4f032fd3eb32
Parent: 7e6d6fdbbd1cc0c2731a281833e3577fbdddadf6
Author: Randy Palamar
Date: Thu, 31 Jul 2025 08:30:39 -0600
shaders/demod: use correct filter endpoint when decimating
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/shaders/demod.glsl b/shaders/demod.glsl
@@ -60,6 +60,7 @@ void main()
int index = int(in_sample) - imageSize(filter_coefficients).x;
int start = index < 0 ? -index : 0;
index += start;
+ target *= int(decimation_rate);
for (int i = start; i < imageSize(filter_coefficients).x && index < target; i++, index++) {
vec2 iq = sqrt(2.0f) * rotate_iq(sample_rf(in_offset + index) * vec2(1, -1), index);
result += iq * imageLoad(filter_coefficients, imageSize(filter_coefficients).x - i - 1).x;