https://github.com/farazzshaikh/ts-noise
Simple CPU gradient noise library. Now with fBm!
https://github.com/farazzshaikh/ts-noise
3d glsl nodejs noise plugin terrain-generation threejs webgl webgl2
Last synced: about 2 months ago
JSON representation
Simple CPU gradient noise library. Now with fBm!
- Host: GitHub
- URL: https://github.com/farazzshaikh/ts-noise
- Owner: FarazzShaikh
- License: mit
- Created: 2021-05-01T22:17:12.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-23T13:34:32.000Z (2 months ago)
- Last Synced: 2025-04-08T11:18:06.021Z (about 2 months ago)
- Topics: 3d, glsl, nodejs, noise, plugin, terrain-generation, threejs, webgl, webgl2
- Language: TypeScript
- Homepage: https://farazzshaikh.github.io/ts-noise/
- Size: 1.34 MB
- Stars: 43
- Watchers: 1
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
TS-Noise
Simple CPU gradient noise library. Now with fBm!
View Demo
·
Report Bug
·
Hire me!
## Installation
```bash
npm i ts-noise
# or
yarn add ts-noise
```## Usage
```js
import { Perlin, FBM } from "ts-noise";// Instantiate. Seed optional
const perlin = new Perlin(seed);
const fbm = new FBM(seed, { ...fbmOptions });perlin.get2(vector2); // Get 2D Perlin Nosie
perlin.get3(vector3); // Get 3D Perlin Nosiefbm.get2(vector2); // Get 2D Perlin Nosie with fBm
fbm.get3(vector3); // Get 3D Perlin Nosie with fBm
```