glslify-client
Convenience wrapper for handling glslify on the client, minimising the amount of requests to glslify-deps
Last updated 5 years ago by hughsk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install glslify-client 
SYNC missed versions from official npm registry.

glslify-client

experimental

Convenience wrapper for handling glslify on the client, minimising the amount of requests to glslify-deps.

Usage

NPM

getSource = Client(getTree)

Creates a new getSource function.

getTree(source, done) should be a function that takes a single GLSL source string, and calls done(err, deps) with the dependency list retrieved from glslify-deps.

getSource(source, done)

Given a single GLSL source string, retrieves the dependency tree (if required) and calls done(null, bundledSource) with the resulting bundled GLSL file.

Contributing

See stackgl/contributing for details.

License

MIT. See LICENSE.md for details.

Current Tags

  • 2.0.0                                ...           latest (5 years ago)

3 Versions

  • 2.0.0                                ...           5 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |