# glsl-noise

> webgl-noise shaders ported to work with glslify

Latest version **0.0.0** (published 2013-09-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install glsl-noise
pnpm add glsl-noise
yarn add glsl-noise
bun add glsl-noise
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2013-09-27 |
| First published | 2013-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 406 |
| Author | Ian McEwan, Ashima Arts, Stefan Gustavson |
| Maintainers | hughsk |
| Keywords | glsl, noise, shader, perlin, simplex, webgl, glslify |

## Links

- npm: https://www.npmjs.com/package/glsl-noise
- Repository: https://github.com/hughsk/glsl-noise
- Issues: https://github.com/hughsk/glsl-noise/issues
- npm.io page: https://npm.io/package/glsl-noise

## Recent versions

- 0.0.0 (latest) — 2013-09-27

## README

# glsl-noise [![frozen](http://hughsk.github.io/stability-badges/dist/frozen.svg)](http://github.com/hughsk/stability-badges) #

[webgl-noise](http://github.com/ashima/webgl-noise) ported to an NPM package
so that you can require it from
[glslify](http://github.com/chrisdickinson/glslify).

[![glsl-noise](https://nodei.co/npm/glsl-noise.png?mini=true)](https://nodei.co/npm/glsl-noise)

## Usage ##

``` glsl
// Require as many or as little as you need:
#pragma glslify: cnoise2 = require(glsl-noise)
#pragma glslify: snoise2 = require(glsl-noise/simplex/2d)
#pragma glslify: snoise3 = require(glsl-noise/simplex/3d)
#pragma glslify: snoise4 = require(glsl-noise/simplex/4d)
#pragma glslify: cnoise2 = require(glsl-noise/classic/2d)
#pragma glslify: cnoise3 = require(glsl-noise/classic/3d)
#pragma glslify: cnoise4 = require(glsl-noise/classic/4d)
#pragma glslify: pnoise2 = require(glsl-noise/periodic/2d)
#pragma glslify: pnoise3 = require(glsl-noise/periodic/3d)
#pragma glslify: pnoise4 = require(glsl-noise/periodic/4d)

attribute vec3 position;

// And just treat them as functions like
// you normally would:
void main() {
  gl_FragColor = vec4(snoise3(position), 1.0);
}
```

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