From 710c12067531e6e05280d081203aeb3b945669a9 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sat, 10 Mar 2018 13:46:12 +0100 Subject: Fix mirroring in png output Restrict starting value range to positive y-values, probably improving random quality --- BuddhaTest/Shaders/BuddhaCompute.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BuddhaTest/Shaders/BuddhaCompute.glsl') diff --git a/BuddhaTest/Shaders/BuddhaCompute.glsl b/BuddhaTest/Shaders/BuddhaCompute.glsl index 263e4c0..d42f506 100644 --- a/BuddhaTest/Shaders/BuddhaCompute.glsl +++ b/BuddhaTest/Shaders/BuddhaCompute.glsl @@ -147,7 +147,7 @@ vec2 getStartValue(uint seed) for(int i = 0; i < 5; ++i) { vec2 random = hash2(hash,hash); - vec2 point = vec2(random.x * 3.5-2.5,random.y*3.1-1.55); + vec2 point = vec2(random.x * 3.5-2.5,random.y*1.55); float useThisPoint =1.0-(isInMainBulb(point) + isInMainCardioid(point)); retval = mix(retval,point,useThisPoint); } -- cgit v1.2.3