1.0.2 • Published 2 years ago

@mats31/shaders v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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