Commit: de5d92ffcbd2af099955a08ba6b6dea31df670dc
Parent: 17c1e76966e9948ef438a07be95f2bf837486dd2
Author: Randy Palamar
Date: Wed, 8 Jan 2025 13:34:30 -0700
das: FORCES: recieve distance in y should always be 0
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/shaders/das.glsl b/shaders/das.glsl
@@ -204,7 +204,7 @@ vec2 uFORCES(vec3 image_point, vec3 delta, float y_off, uint starting_offset, fl
uint base_idx = (i - uforces) / 4;
uint sub_idx = (i - uforces) % 4;
- vec3 rdist = image_point;
+ vec2 rdist = vec2(image_point.x, image_point.z);
vec3 focal_point = uforces_channels[base_idx][sub_idx] * delta + vec3(0, y_off, 0);
float transmit_dist = distance(image_point, focal_point);
@@ -212,7 +212,7 @@ vec2 uFORCES(vec3 image_point, vec3 delta, float y_off, uint starting_offset, fl
float sidx = sample_index(transmit_dist + length(rdist));
vec2 valid = vec2(sidx >= 0) * vec2(sidx < dec_data_dim.x);
sum += apodize(cubic(ridx, sidx), apodization_arg, rdist.x) * valid;
- rdist -= delta;
+ rdist.x -= delta.x;
ridx += dec_data_dim.x;
}
}