aboutsummaryrefslogtreecommitdiff
path: root/BuddhaTest/Shaders/BuddhaCompute.glsl
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-10 13:46:12 +0100
committerAndreas Grois <andi@grois.info>2018-03-10 13:46:12 +0100
commit710c12067531e6e05280d081203aeb3b945669a9 (patch)
tree3b89e9775a8515b1972cb96b71fbe0a110cc2ff5 /BuddhaTest/Shaders/BuddhaCompute.glsl
parent01b47b49462a3b6ade6e8819edad9f2455fe1143 (diff)
Fix mirroring in png output
Restrict starting value range to positive y-values, probably improving random quality
Diffstat (limited to 'BuddhaTest/Shaders/BuddhaCompute.glsl')
-rw-r--r--BuddhaTest/Shaders/BuddhaCompute.glsl2
1 files changed, 1 insertions, 1 deletions
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);
}