From 54d21d69838b394003d243bf21f2fb14d765307e Mon Sep 17 00:00:00 2001 From: Aiden Gall Date: Tue, 6 Feb 2024 11:23:46 +0000 Subject: refactor camera and a few miscellaneous things --- src/cl/spirt.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cl') 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]; -- cgit v1.2.3