packages/docs/docs/noise/noise-3d.mdx
Part of the @remotion/noise package.
Creates 3D noise.
The function takes four arguments:
seedPass any string or number. If the seed is the same, you will get the same result for same x, y and z values. Change the seed to get different results for your x, y and z values.
xnumber
The first dimensional value.
ynumber
The second dimensional value.
znumber
The third dimensional value.
A value between -1 and 1, swinging as your x, y and z values change.
import { noise3D } from "@remotion/noise";
const x = 32;
const y = 40;
const z = 50;
console.log(noise3D("my-seed", x, y, z));
Uses the simplex-noise dependency