Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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.