diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/diffraction.cl | 2 |
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); } |