This commit is contained in:
Dylan K. Taylor 2018-12-28 12:56:01 +00:00
commit 045868783c

View File

@ -77,6 +77,11 @@ class Simplex extends Noise{
$this->perm[$pos] = $old; $this->perm[$pos] = $old;
$this->perm[$i + 256] = $this->perm[$i]; $this->perm[$i + 256] = $this->perm[$i];
} }
//this dummy call is necessary to produce the same RNG state as before latest refactors to this file
//previously this value would be used for offsetW
//TODO: this really needs to reset the RNG seed to avoid future RNG contamination
$random->nextSignedInt();
} }
public function getNoise3D($x, $y, $z){ public function getNoise3D($x, $y, $z){