Voronoi functions.
These are wgsl functions, not js functions. The function is enclosed in a js string constant, to be appended into the code to reference it in the string shader.
- Source:
- core/voronoi.js, line 1
Members
staticconstantvoronoi String
Voronoi noise. Generated randomly.
- Source:
- core/voronoi.js, line 31
Example
import { voronoi } from 'points/voronoi'; // wgsl string ${voronoi} let value = voronoi(uvr, numPoints);
js