https://gist.github.com/portify/9544197It's broken - I told him it's broken like a week ago, and he said he hasn't uploaded the fixed version yet. I keep bugging him about it, but he still hasn't done it.
I've been using zack0wack0's, which works great, but it doesn't have seeds like Port's does. It always generates the same result.
http://upload.zapkraft.net/perlin.csI've tried to fix Port's, but this is just gibberish to me. I mean wh
at the forget is th %h = %hash & 15;
%u = %h < 8 ? %x : %y;
%v = %h < 4 ? %y : (%h == 12 || %h == 14 ? %x : %z);
return ((%h & 1) == 0 ? %u : -%u) + ((%h & 2) == 0 ? %v : -%v);
WHAT IS THAT. WHY.
If anybody is willing to fix it, or has their own perlin noise function, that'd be great. xxoo