aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/compute.comp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2020-12-28 22:12:34 +0100
committerladevieq <ladevie.quentin@gmail.com>2020-12-28 22:12:34 +0100
commit5768c16bd01900d1eb34873a44d231011d0b744b (patch)
treea5a697addeabd0294abf973ddd1ed2eabf4897e0 /shaders/compute.comp
parentae5b71f64715468d62ed889788969697a24cd794 (diff)
First compute shader image
Diffstat (limited to 'shaders/compute.comp')
-rw-r--r--shaders/compute.comp3
1 files changed, 1 insertions, 2 deletions
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);
}