diff options
author | Adrian Kummerlaender | 2018-05-21 13:04:41 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2018-05-21 13:05:43 +0200 |
commit | ffa662ec5acdaae36f0ffeaf0cee78a4200d897b (patch) | |
tree | 9933f6a0781a54e146664fa75bd235ed1bd7c154 /src/shader/compute.glsl | |
parent | 3bc6622f4f339a9ab3c808d02c48c1c144bc4e10 (diff) | |
download | computicle-ffa662ec5acdaae36f0ffeaf0cee78a4200d897b.tar computicle-ffa662ec5acdaae36f0ffeaf0cee78a4200d897b.tar.gz computicle-ffa662ec5acdaae36f0ffeaf0cee78a4200d897b.tar.bz2 computicle-ffa662ec5acdaae36f0ffeaf0cee78a4200d897b.tar.lz computicle-ffa662ec5acdaae36f0ffeaf0cee78a4200d897b.tar.xz computicle-ffa662ec5acdaae36f0ffeaf0cee78a4200d897b.tar.zst computicle-ffa662ec5acdaae36f0ffeaf0cee78a4200d897b.zip |
Introduce basic shader, texture buffer abstraction
Diffstat (limited to 'src/shader/compute.glsl')
-rw-r--r-- | src/shader/compute.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader/compute.glsl b/src/shader/compute.glsl index 8b1deab..58bf08b 100644 --- a/src/shader/compute.glsl +++ b/src/shader/compute.glsl @@ -22,7 +22,7 @@ void main() { vec2 v = vec2(data[idx+0], data[idx+1]); if ( data[idx+2] < 5. && insideWorld(v) ) { - data[idx+0] += 0.01 * cos(v.x*cos(v.y)); + data[idx+0] += 0.01 * cos(v.x*sin(v.y)); data[idx+1] += 0.01 * sin(v.x-v.y); data[idx+2] += 0.01; } else { |