I have to use a noise function from the library Noise.js. How would I go about adding the library to my file so that it is called?
Here is the small section that calls it.
//Use noise.js library to generate a grid of 2D simplex noise values
try {
noise.seed(Math.random());
}
catch(err) {
console.log(err.message);
}
Here is the link to the ThreeJS file that uses the noise function to create 3D curl noise. https://al-ro.github.io/projects/embers/embers.js
Here is the Noise library https://github.com/josephg/noisejs