createNoise3D()
Part of the @remotion/noise
package.
Creates 3D noise. The function takes one argument:
seed
, same as random's one
A NoiseFunction3D
is returned:
tsx
import {createNoise3D } from "@remotion/noise";import type {NoiseFunction3D } from "@remotion/noise";constnoise3d :NoiseFunction3D =createNoise3D ("my-seed");constx = 32;consty = 40;constz = 50;console .log (noise3d (x ,y ,z )); // a number in the interval [-1, 1] which corresponds to (x, y, z) coord.
tsx
import {createNoise3D } from "@remotion/noise";import type {NoiseFunction3D } from "@remotion/noise";constnoise3d :NoiseFunction3D =createNoise3D ("my-seed");constx = 32;consty = 40;constz = 50;console .log (noise3d (x ,y ,z )); // a number in the interval [-1, 1] which corresponds to (x, y, z) coord.
Credits
Dependency: simplex-noise