mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-12-16 10:41:05 +00:00
larry babby and threejs for glsl
This commit is contained in:
35
webGl/my-threejs-test/node_modules/glsl-token-string/README.md
generated
vendored
Normal file
35
webGl/my-threejs-test/node_modules/glsl-token-string/README.md
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
# glsl-token-string
|
||||
|
||||
[](http://github.com/badges/stability-badges)
|
||||
|
||||
Simple helper package that converts an array of GLSL tokens to a plain GLSL
|
||||
source string.
|
||||
|
||||
## Usage
|
||||
|
||||
[](https://nodei.co/npm/glsl-token-string/)
|
||||
|
||||
### `src = stringify(tokens)`
|
||||
|
||||
``` javascript
|
||||
var tokenize = require('glsl-tokenizer/string')
|
||||
var stringify = require('glsl-token-string')
|
||||
var assert = require('assert')
|
||||
|
||||
var src = 'vec3 light = vec3(1.0);'
|
||||
var tokens = tokenize(src)
|
||||
|
||||
assert(stringify(tokens) === src)
|
||||
```
|
||||
|
||||
## See Also
|
||||
|
||||
* [glsl-tokenizer](http://github.com/stackgl/glsl-tokenizer)
|
||||
* [glsl-token-scope](http://github.com/stackgl/glsl-token-scope)
|
||||
* [glsl-token-depth](http://github.com/stackgl/glsl-token-depth)
|
||||
* [glsl-token-properties](http://github.com/stackgl/glsl-token-properties)
|
||||
* [glsl-token-assignments](http://github.com/stackgl/glsl-token-assignments)
|
||||
|
||||
## License
|
||||
|
||||
MIT. See [LICENSE.md](http://github.com/stackgl/glsl-token-string/blob/master/LICENSE.md) for details.
|
||||
Reference in New Issue
Block a user