diff options
Diffstat (limited to 'shaders/compute.comp')
| -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); } |
