Commit: 6345cb8bd192a5f2d5022420001f4aa2bb088276
Parent: 4b62440f2fd214768034d5611aee98a02fc5d7e0
Author: Randy Palamar
Date: Sat, 14 Sep 2024 10:02:31 -0600
uforces/hercules: xdc_start should move along edge2 not edge2.y
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/shaders/hercules.glsl b/shaders/hercules.glsl
@@ -108,9 +108,9 @@ void main()
float iq_time_scale = (lpf_order > 0)? radians(360) * center_frequency : 0;
/* NOTE: lerp along a line from one edge of the xdc to the other in the imaging plane */
- vec3 delta = edge1 / float(dec_data_dim.y);
- vec3 xdc_start = xdc_origin.xyz;
- xdc_start.y += edge2.y / 2;
+ vec3 delta = edge1 / float(dec_data_dim.y);
+ vec3 xdc_start = xdc_origin.xyz;
+ xdc_start += edge2 / 2;
vec3 starting_point = image_point - xdc_start;
diff --git a/shaders/uforces.glsl b/shaders/uforces.glsl
@@ -102,9 +102,9 @@ void main()
float iq_time_scale = (lpf_order > 0)? radians(360) * center_frequency : 0;
/* NOTE: lerp along a line from one edge of the xdc to the other in the imaging plane */
- vec3 delta = edge1 / float(dec_data_dim.y);
- vec3 xdc_start = xdc_origin.xyz;
- xdc_start.y += edge2.y / 2;
+ vec3 delta = edge1 / float(dec_data_dim.y);
+ vec3 xdc_start = xdc_origin.xyz;
+ xdc_start += edge2 / 2;
vec3 starting_point = image_point - xdc_start;