aboutsummaryrefslogtreecommitdiff
path: root/src/shader
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-05-21 13:04:41 +0200
committerAdrian Kummerlaender2018-05-21 13:05:43 +0200
commitffa662ec5acdaae36f0ffeaf0cee78a4200d897b (patch)
tree9933f6a0781a54e146664fa75bd235ed1bd7c154 /src/shader
parent3bc6622f4f339a9ab3c808d02c48c1c144bc4e10 (diff)
downloadcomputicle-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')
-rw-r--r--src/shader/compute.glsl2
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 {