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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @mats31/shaders

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

4.54 kB

Total Files

4

Last publish

Collaborators

  • mats31