Commit: 08ae5096059b40df1fa72e85f3d3fe3046c1cf67
Parent: 14b58ce36edd6747fb7fafdac8d06c91c803260f
Author: Randy Palamar
Date: Wed, 8 Jan 2025 11:13:04 -0700
das: use the correct number of channels for HERCULES and RCA
I must have dropped this when I was cleaning up the FORCES path.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/shaders/das.glsl b/shaders/das.glsl
@@ -263,14 +263,14 @@ void main()
break;
case DAS_ID_HERCULES:
/* TODO: there should be a smarter way of detecting this */
- if (edge2.x != 0) delta = vec3(edge2.x, edge1.y, 0) / float(dec_data_dim.y);
- else delta = vec3(edge1.x, edge2.y, 0) / float(dec_data_dim.y);
+ if (edge2.x != 0) delta = vec3(edge2.x, edge1.y, 0) / float(dec_data_dim.y - 1);
+ else delta = vec3(edge1.x, edge2.y, 0) / float(dec_data_dim.y - 1);
sum = HERCULES(image_point, delta, starting_offset, apod_arg);
break;
case DAS_ID_RCA:
/* TODO: there should be a smarter way of detecting this */
- if (edge2.x != 0) delta = vec3(edge2.x, edge1.y, 0) / float(dec_data_dim.y);
- else delta = vec3(edge1.x, edge2.y, 0) / float(dec_data_dim.y);
+ if (edge2.x != 0) delta = vec3(edge2.x, edge1.y, 0) / float(dec_data_dim.y - 1);
+ else delta = vec3(edge1.x, edge2.y, 0) / float(dec_data_dim.y - 1);
sum = RCA(image_point, delta, starting_offset, apod_arg);
break;
}