@absulit/points
Version:
A Generative Art library made in WebGPU
25 lines (24 loc) • 587 B
TypeScript
/**
* original: Author : Ian McEwan, Ashima Arts.
* https://github.com/ashima/webgl-noise/blob/master/src/noise2D.glsl
*
* 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.
* @module points/noise2d
*/
/**
* Sinplex Noise function
* @type {String}
* @param {vec2f} v usually the uv
* @returns {f32}
*
* @example
* // js
* import { snoise } from 'points/noise2d';
*
* // wgsl string
* ${snoise}
* let value = snoise(uv);
*/
export const snoise: string;