Commit: 9211e9927eca59ed51530b9603f68a40970540b8
Parent: ccfeec8d805bbf3341aa3ccbaccaa0957365375c
Author: Randy Palamar
Date: Fri, 24 Jan 2025 06:26:27 -0700
das: fix typo in u16 unpack
I'm not sure why the code works even with the typo but its obviously wrong.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shaders/das.glsl b/shaders/das.glsl
@@ -219,7 +219,7 @@ vec2 uFORCES(vec3 image_point, vec3 delta, float apodization_arg)
for (uint i = uforces; i < dec_data_dim.z; i++) {
uint base_idx = ((i - uforces) / 8);
uint sub_idx = ((i - uforces) % 8) / 2;
- uint shift = (~(i - uforces) * 1u) * 16u;
+ uint shift = (~(i - uforces) & 1u) * 16u;
uint channel = (uforces_channels[base_idx][sub_idx] << shift) >> 16u;
vec2 rdist = vec2(image_point.x, image_point.z);