@mats31/shaders

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i @mats31/shaders

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

4.54 kB

Total Files

4

Last publish

Collaborators

  • mats31