animate/webGl/my-threejs-test/node_modules/glsl-token-string
Sam 907ebae4c0 larry babby and threejs for glsl 2024-06-24 21:24:00 +12:00
..
.npmignore larry babby and threejs for glsl 2024-06-24 21:24:00 +12:00
LICENSE.md larry babby and threejs for glsl 2024-06-24 21:24:00 +12:00
README.md larry babby and threejs for glsl 2024-06-24 21:24:00 +12:00
fixture.glsl larry babby and threejs for glsl 2024-06-24 21:24:00 +12:00
index.js larry babby and threejs for glsl 2024-06-24 21:24:00 +12:00
package.json larry babby and threejs for glsl 2024-06-24 21:24:00 +12:00

README.md

glsl-token-string

experimental

Simple helper package that converts an array of GLSL tokens to a plain GLSL source string.

Usage

NPM

src = stringify(tokens)

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

License

MIT. See LICENSE.md for details.