![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | fixtures/ | 2 years ago | - | |
![]() | lib/ | 2 years ago | - | |
![]() | LICENSE.md | 2 years ago | 1.2K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![]() | README.md | 2 years ago | 1.2K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![]() | index.js | 2 years ago | 5.7K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![]() | package.json | 2 years ago | 2.2K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
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.
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)
})
See stackgl/contributing for details.
MIT. See LICENSE.md for details.