Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughsk/gl-shader-update
Update the vertex/fragment sources of a shader instance created by gl-shader, gl-shader-core or glslify.
https://github.com/hughsk/gl-shader-update
Last synced: 8 days ago
JSON representation
Update the vertex/fragment sources of a shader instance created by gl-shader, gl-shader-core or glslify.
- Host: GitHub
- URL: https://github.com/hughsk/gl-shader-update
- Owner: hughsk
- License: other
- Created: 2014-06-03T00:32:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-03T00:32:11.000Z (over 10 years ago)
- Last Synced: 2024-10-17T16:41:25.291Z (22 days ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# gl-shader-update [![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)
Update the vertex/fragment sources of a shader instance created by
[gl-shader](http://github.com/mikolalysenko/gl-shader),
[gl-shader-core](http://github.com/mikolalysenko/gl-shader-core) or
[glslify](http://github.com/chrisdickinson/glslify).## Usage
[![NPM](https://nodei.co/npm/gl-shader-update.png)](https://nodei.co/npm/gl-shader-update/)
### update.vert(shader, source)
Replace `shader`'s current vertex shader with `source`.
### update.frag(shader, source)
Replace `shader`'s current fragment shader with `source`.
## License
MIT. See [LICENSE.md](http://github.com/hughsk/gl-shader-update/blob/master/LICENSE.md) for details.