aboutsummaryrefslogtreecommitdiff
path: root/data/diffraction.cl
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-11-15 16:15:18 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:05 +0100
commitfcde5d4f2fd95845402b86c3838f15b6632a8071 (patch)
treeabbc289f986e72571f88d5ad6b76ec55869e8f3a /data/diffraction.cl
parent5f053ff4194f65bc0b760e409dd8ac18abe2aee0 (diff)
Flip beam direction in OpenCL code as well
Diffstat (limited to 'data/diffraction.cl')
-rw-r--r--data/diffraction.cl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/diffraction.cl b/data/diffraction.cl
index 8b6ece99..4262a1ec 100644
--- a/data/diffraction.cl
+++ b/data/diffraction.cl
@@ -74,7 +74,7 @@ float4 get_q(int x, int y, float cx, float cy, float res, float clen, float k,
q = (float4)(k*native_sin(tt)*native_cos(az),
k*native_sin(tt)*native_sin(az),
- k-k*native_cos(tt), 0.0);
+ k*(native_cos(tt)-1.0), 0.0);
return quat_rot(q, z);
}