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.

Author:
Sebastián Sanabria Díaz sebastian@absulit.com
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

MIT

Documentation generated by JSDoc 4.0.4 using Docolatte theme on