aboutsummaryrefslogtreecommitdiff
path: root/src/shader
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-05-21 14:35:43 +0200
committerAdrian Kummerlaender2018-05-21 14:35:43 +0200
commita8feed9d7951c9a947562ed687c704851a31ea9b (patch)
tree77fc9debb4e72ec9f72ba2cb992b164ae4e63b08 /src/shader
parentffa662ec5acdaae36f0ffeaf0cee78a4200d897b (diff)
downloadcomputicle-a8feed9d7951c9a947562ed687c704851a31ea9b.tar
computicle-a8feed9d7951c9a947562ed687c704851a31ea9b.tar.gz
computicle-a8feed9d7951c9a947562ed687c704851a31ea9b.tar.bz2
computicle-a8feed9d7951c9a947562ed687c704851a31ea9b.tar.lz
computicle-a8feed9d7951c9a947562ed687c704851a31ea9b.tar.xz
computicle-a8feed9d7951c9a947562ed687c704851a31ea9b.tar.zst
computicle-a8feed9d7951c9a947562ed687c704851a31ea9b.zip
Fix VAO, VBO setup, compute shader coupling
Diffstat (limited to 'src/shader')
-rw-r--r--src/shader/compute.glsl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader/compute.glsl b/src/shader/compute.glsl
index 58bf08b..e322a08 100644
--- a/src/shader/compute.glsl
+++ b/src/shader/compute.glsl
@@ -12,9 +12,9 @@ float rand(vec2 co){
bool insideWorld(vec2 v) {
return v.x > -world.x/2.
- && v.x < world.x/2.
- && v.y > -world.y/2.
- && v.y < world.y/2.;
+ && v.x < world.x/2.
+ && v.y > -world.y/2.
+ && v.y < world.y/2.;
}
void main() {