glsl-extract-sync
Version:
A synchronous version of the glsl-extract module
20 lines (12 loc) • 760 B
Markdown
# glsl-extract-sync [](http://github.com/badges/stability-badges)
A synchronous version of [@chrisdickinson](http://github.com/chrisdickinson)'s
[glsl-extract](http://github.com/chrisdickinson/glsl-extract) module, originally
sourced from [@mikolalysenko](http://github.com/mikolalysenko)'s
[gl-shader](http://git.io/YgJnBQ) module.
## Usage
[](https://nodei.co/npm/glsl-extract-sync/)
### exports = extract(shaderString)
Returns an object with the `attributes` and `uniforms` defined in a given shader
string.
## License
MIT. See [LICENSE.md](http://github.com/hughsk/glsl-extract-sync/blob/master/LICENSE.md) for details.