npm.io
1.0.2 • Published 4 years ago

@mats31/shaders

Licence
ISC
Version
1.0.2
Deps
0
Size
4 kB
Vulns
0
Weekly
0

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);
}

Keywords