/ piacw.com / dev / final / node_modules / glslify-bundle /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]fixtures/2 years ago -  
[DIR]lib/2 years ago -  
[TXT]LICENSE.md2 years ago1.2K0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]README.md2 years ago1.2K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]index.js2 years ago5.7K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]package.json2 years ago2.2K0fb859dc fixed mobile overflwo options [كارل مبارك]
README.md

glslify-bundle

experimental

Bundle a glslify-deps dependency tree into a GLSL source string.

This has been separated from glslify-deps such that you can prebundle a dependency tree server-side, but then still modify shader file contents in a browser.

Usage

NPM

source = bundle(deps)

Takes the output object from glslify-deps and returns a bundled GLSL string.

var bundle = require('glslify-bundle')
var deps   = require('glslify-deps')
var path   = require('path')

var file = path.join(__dirname, 'index.glsl')

deps().add(file, function(err, tree) {
  if (err) throw err

  var glsl = bundle(tree)

  console.log(glsl)
})

Contributing

See stackgl/contributing for details.

License

MIT. See LICENSE.md for details.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80