diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2020-12-28 22:12:34 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2020-12-28 22:12:34 +0100 |
| commit | 5768c16bd01900d1eb34873a44d231011d0b744b (patch) | |
| tree | a5a697addeabd0294abf973ddd1ed2eabf4897e0 /shaders | |
| parent | ae5b71f64715468d62ed889788969697a24cd794 (diff) | |
First compute shader image
Diffstat (limited to 'shaders')
| -rw-r--r-- | shaders/compute.comp | 3 |
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); } |
