An open API service indexing awesome lists of open source software.

https://github.com/ayamflow/glsl-layer

Layer texels on top of each other in the same shader.
https://github.com/ayamflow/glsl-layer

Last synced: about 1 year ago
JSON representation

Layer texels on top of each other in the same shader.

Awesome Lists containing this project

README

          

# glsl-layer

[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)

Layer texels on top of each other in the same shader.

![glsl-layer](https://i.imgur.com/wDSxcef.jpg)

### Installation :package:

```bash
npm i glsl-layer -S
```

### Usage & example :floppy_disk:

```glsl
#pragma glslify: layer = require('glsl-layer')

attribute vec2 vUv;
uniform sampler2D circle;
uniform sampler2D square;

void main() {
gl_FragColor = layer(
texture2D(circle, vUv),
texture2D(square, vUv)
);
}
```

### License :pencil:

MIT. See [LICENSE](http://github.com/ayamflow/glsl-layer/blob/master/LICENSE) for details.