INNER CODE UNIT · JavaScript

noise

paladin-t/bitty · lib/fast_noise/JavaScript/FastNoiseLite.js:912

            let noise = this._GenNoiseSingleR2(seed++, x, y);
            sum += noise * amp;
            amp *= FastNoiseLite._Lerp(1.0, Math.min(noise + 1, 2) * 0.5, this._WeightedStrength);

            x *= this._Lacunarity;
            y *= this._Lacunarity;
            amp *= this._Gain;
        }
        return sum;
    }

    /**
     * @private
     * @param {number} x
     * @param {number} y
     * @param {number} z
     * @returns {number}
     */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…