INNER CODE UNIT · JavaScript

noise

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

            let noise = Math.abs(this._GenNoiseSingleR2(seed++, x, y));
            sum += (noise * -2 + 1) * amp;
            amp *= FastNoiseLite._Lerp(1.0, 1 - noise, 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…