News for hackers. Stuff that matters.
Re:A Simple Hash for Perlin Noise by Lerc on Tuesday May 10, 2022 @08:36PM (#31334482)
For my stack based texture generator I used (utilizing https://github.com/skeeto/hash-prospector )

  let intHash = x => {
    x *= 0xed5ad4bb;
    x ^= x >> 11;
    x = Math.imul(x,0xac4c1b51);
    x ^= x >> 15;
    x = Math.imul(x,0x31848bab);
    x ^= x >> 14;
    return x;
  }
With a little wrapper to blend it with a seed via intHash(x+inthash(x+seed))

Used in a Perlin flame here http://fingswotidun.com/stackie/?code=x1x-*5*dx4**y3*p%2By!-...

There are no comments on this comment yet.