Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hughsk/glsl-extract-sync

A synchronous version of the glsl-extract module
https://github.com/hughsk/glsl-extract-sync

Last synced: 8 days ago
JSON representation

A synchronous version of the glsl-extract module

Awesome Lists containing this project

README

        

# glsl-extract-sync [![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](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

[![NPM](https://nodei.co/npm/glsl-extract-sync.png)](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.