From ac16f6660983c143918b2a1133db5954a4e3ba31 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sun, 11 Mar 2018 14:10:11 +0100 Subject: Instead of using the yDecoupler value directly, the code's now using the hash of it, causing more drastic changes of the y=f(x,yDecoupler) function with dispatch number. --- BuddhaTest/Shaders/BuddhaCompute.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BuddhaTest/Shaders') diff --git a/BuddhaTest/Shaders/BuddhaCompute.glsl b/BuddhaTest/Shaders/BuddhaCompute.glsl index 85d0cae..9d8301a 100644 --- a/BuddhaTest/Shaders/BuddhaCompute.glsl +++ b/BuddhaTest/Shaders/BuddhaCompute.glsl @@ -134,7 +134,7 @@ vec2 getStartValue(uint seed, uint yDecoupler) for(int i = 0; i < 5; ++i) { float x = hash1(hash,hash); - hash = (hash ^ yDecoupler); + hash = (hash ^ intHash(yDecoupler)); float y = hash1(hash,hash); vec2 random = vec2(x,y); vec2 point = vec2(random.x * 3.5-2.5,random.y*1.55); -- cgit v1.2.3