From ffa662ec5acdaae36f0ffeaf0cee78a4200d897b Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 21 May 2018 13:04:41 +0200 Subject: Introduce basic shader, texture buffer abstraction --- src/shader/compute.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shader') 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 { -- cgit v1.2.3