public MegaPerlin() { if ( instance != null ) { Debug.LogError("Cannot have two instances of ImprovedPerlin."); return; } instance = this; for ( int i = 0; i < 256; i++ ) p[256 + i] = p[i] = permutation[i]; }
public MegaPerlin() { if (instance != null) { Debug.LogError("Cannot have two instances of ImprovedPerlin."); return; } instance = this; for (int i = 0; i < 256; i++) { p[256 + i] = p[i] = permutation[i]; } }