@mats31/shaders
v1.0.2
Published
Shaders templates
Downloads
5
Maintainers
Readme
shaders
Shaders ported to an NPM package so that we can require it from glslify.
Usage
// Require as many or as little as you need:
#pragma glslify: voronoi = require(@mats31/shaders/noise/voronoi)
attribute vec2 uv;
// And just treat them as functions like
// you normally would:
void main() {
float n = voronoi(uv);
gl_FragColor = vec4(vec3(n), 1.0);
}