ogl_beamforming

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

Commit: f108b6dcfc00fe769911babdd6b206f0319615d1
Parent: 29d0e03ddc27128970bdde7a6890b001e77e59f1
Author: Randy Palamar
Date:   Thu, 16 Jan 2025 22:55:35 -0700

das: fix multipass volume export

I forgot to add the offset to the voxel when I combined (u)FORCES
and HERCULES into an uber shader a while ago. This corrects that.

Diffstat:
Mshaders/das.glsl | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/shaders/das.glsl b/shaders/das.glsl @@ -228,8 +228,9 @@ void main() { /* NOTE: Convert voxel to physical coordinates */ - ivec3 out_coord = ivec3(gl_GlobalInvocationID); - vec3 image_point = calc_image_point(vec3(gl_GlobalInvocationID)); + ivec3 out_coord = ivec3(gl_GlobalInvocationID) + u_volume_export_dim_offset; + vec3 image_point = calc_image_point(vec3(gl_GlobalInvocationID) + + vec3(u_volume_export_dim_offset)); /* NOTE: used for constant F# dynamic receive apodization. This is implemented as: *