Commit: 185a770c2d11ac3f9d879625e974c44c1c4acd46
Parent: 591ed8370b13fc28bb791e4f239073b52a3840f5
Author: Randy Palamar
Date: Thu, 3 Oct 2024 11:22:57 -0600
uforces/hercules: output complex data so averaging works correctly
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/shaders/hercules.glsl b/shaders/hercules.glsl
@@ -167,5 +167,5 @@ void main()
rdist[direction] = starting_point[direction];
rdist[direction ^ 1] -= delta[direction ^ 1];
}
- imageStore(u_out_data_tex, out_coord, vec4(length(sum)));
+ imageStore(u_out_data_tex, out_coord, vec4(sum.x, sum.y, 0, 0));
}
diff --git a/shaders/uforces.glsl b/shaders/uforces.glsl
@@ -146,5 +146,5 @@ void main()
ridx += dec_data_dim.x;
}
}
- imageStore(u_out_data_tex, out_coord, vec4(length(sum)));
+ imageStore(u_out_data_tex, out_coord, vec4(sum.x, sum.y, 0, 0));
}