From 5768c16bd01900d1eb34873a44d231011d0b744b Mon Sep 17 00:00:00 2001 From: ladevieq Date: Mon, 28 Dec 2020 22:12:34 +0100 Subject: First compute shader image --- shaders/compute.comp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shaders') diff --git a/shaders/compute.comp b/shaders/compute.comp index f0bb220..10123dc 100644 --- a/shaders/compute.comp +++ b/shaders/compute.comp @@ -10,6 +10,5 @@ void main() { uint width = gl_NumWorkGroups.x; uint height = gl_NumWorkGroups.y; - // image[y * width + x] = vec3(x / width, y / height, 0.0); - image[y * width + x] = vec3(255.0, 255.0, 0.0); + image[y * width + x] = vec3(float (x) / width, float (y) / height, 0.0); } -- cgit v1.3