summaryrefslogtreecommitdiff
path: root/src/cl
diff options
context:
space:
mode:
authorAiden Gall <aiden@aidengall.xyz>2024-02-06 11:23:46 +0000
committerAiden Gall <aiden@aidengall.xyz>2024-02-06 11:23:46 +0000
commit54d21d69838b394003d243bf21f2fb14d765307e (patch)
treecf198688353d2042c990ccaf443931590c885d9d /src/cl
parente77c9dc9354b715fc2d3894ee553caac3784b00c (diff)
refactor camera and a few miscellaneous thingsHEADmaster
Diffstat (limited to 'src/cl')
-rw-r--r--src/cl/spirt.cl2
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];