# @mats31/shaders

> Shaders templates

Latest version **1.0.2** (published 2022-07-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @mats31/shaders
pnpm add @mats31/shaders
yarn add @mats31/shaders
bun add @mats31/shaders
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-07-22 |
| First published | 2022-05-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mathis Biabiany |
| Maintainers | mats31 |
| Keywords | glsl, noise, shader, perlin, simplex, webgl, glslify, voronoi, fbm |

## Links

- npm: https://www.npmjs.com/package/@mats31/shaders
- Repository: https://github.com/mats31/shaders
- Homepage: https://github.com/mats31/shaders#readme
- Issues: https://github.com/mats31/shaders/issues
- npm.io page: https://npm.io/package/@mats31/shaders

## Recent versions

- 1.0.2 (latest) — 2022-07-22
- 1.0.1 — 2022-05-08
- 1.0.0 — 2022-05-08

## README

# shaders #

Shaders ported to an NPM package so that we can require it from
[glslify](http://github.com/chrisdickinson/glslify).

## Usage ##

``` glsl
// 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);
}
```

---
_Source: https://npm.io/package/@mats31/shaders · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
