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.
- Host: GitHub
- URL: https://github.com/ayamflow/glsl-layer
- Owner: ayamflow
- License: mit
- Created: 2018-03-20T01:42:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-20T01:45:55.000Z (over 8 years ago)
- Last Synced: 2025-04-12T19:09:18.306Z (about 1 year ago)
- Language: GLSL
- Size: 1.95 KB
- Stars: 19
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# glsl-layer
[](http://github.com/badges/stability-badges)
Layer texels on top of each other in the same shader.

### 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.