diff options
author | Aiden Gall <aiden@aidengall.xyz> | 2024-02-06 11:23:46 +0000 |
---|---|---|
committer | Aiden Gall <aiden@aidengall.xyz> | 2024-02-06 11:23:46 +0000 |
commit | 54d21d69838b394003d243bf21f2fb14d765307e (patch) | |
tree | cf198688353d2042c990ccaf443931590c885d9d /src/cl/spirt.cl | |
parent | e77c9dc9354b715fc2d3894ee553caac3784b00c (diff) |
Diffstat (limited to 'src/cl/spirt.cl')
-rw-r--r-- | src/cl/spirt.cl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl/spirt.cl b/src/cl/spirt.cl index 136fd81..9b77919 100644 --- a/src/cl/spirt.cl +++ b/src/cl/spirt.cl @@ -103,7 +103,7 @@ ray_colour(__global float *const canvas, __global const float3 *const rays) i = get_global_id(0); j = get_global_id(1); - ray_idx = (w * j + i) * 2; + ray_idx = 2 * (w * j + i); ray.orig = rays[ray_idx]; ray.dir = rays[ray_idx + 1]; |