diff options
author | Andreas Grois <andi@grois.info> | 2018-03-11 14:10:11 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-11 14:10:11 +0100 |
commit | ac16f6660983c143918b2a1133db5954a4e3ba31 (patch) | |
tree | 38726995c407b3df3666af23257f919b201da62c | |
parent | a486b4fc93448400529e69cd973d0297ed9cfcbe (diff) |
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.
-rw-r--r-- | BuddhaTest/Shaders/BuddhaCompute.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
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);
|