ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | LICENSE

Commit: 8e8b13f716535edaccaf6e73833540ba1d3db554
Parent: ccc6d98e0ba77b7a4e5946f40d83f2d0ad9139dd
Author: Randy Palamar
Date:   Thu, 14 Nov 2024 16:29:31 -0700

hercules: properly step the second axis when image is off axis

Diffstat:
Mshaders/hercules.glsl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shaders/hercules.glsl b/shaders/hercules.glsl @@ -84,7 +84,7 @@ void main() float apod_arg = f_num * 0.5 * radians(360) / abs(image_point.z); /* 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 delta = vec3(edge1.x, edge2.y, 0) / float(dec_data_dim.y); vec3 xdc_start = xdc_origin[u_xdc_index].xyz; xdc_start += edge2 / 2;