From a76ec22db53f19d68caa0d21008d220c0ae4e815 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Thu, 15 Mar 2018 08:42:53 +0100 Subject: Oops --- BuddhaTest/Shaders/BuddhaCompute.glsl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'BuddhaTest/Shaders/BuddhaCompute.glsl') diff --git a/BuddhaTest/Shaders/BuddhaCompute.glsl b/BuddhaTest/Shaders/BuddhaCompute.glsl index 044cd01..43228a8 100644 --- a/BuddhaTest/Shaders/BuddhaCompute.glsl +++ b/BuddhaTest/Shaders/BuddhaCompute.glsl @@ -94,7 +94,7 @@ vec2 compSqr(in vec2 v) return vec2(v.x*v.x-v.y*v.y, 2.0*v.x*v.y); } -float isInMainCardioid(vec2 v) +bool isInMainCardioid(vec2 v) { /* The condition that a point c is in the main cardioid is that its orbit has @@ -152,10 +152,10 @@ float isInMainCardioid(vec2 v) vec2 z = vec2(1.0,0.0)-4.0*v; float zNormSqr = dot(z,z); float rhsSqrt = 0.5*zNormSqr - z.x; - return step(rhsSqrt*rhsSqrt,zNormSqr); + return rhsSqrt*rhsSqrt 20.0) { - doneIterations = i+1; iterationsLeftThisFrame -= i+1-doneIterations; + doneIterations = i+1; return true; //done. } if(lastVal.x > -2.5 && lastVal.x < 1.0 && lastVal.y > -1.0 && lastVal.y < 1.0) -- cgit v1.2.3