glslify-sync

A synchronous wrapper for glslify, providing a consistent interface between both Node.js and browserify

glslify v6 supports sync in node out of the box
Last updated 5 years ago by vorg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install glslify-sync 
SYNC missed versions from official npm registry.

glslify-sync

stable

A synchronous wrapper for glslify, providing a consistent interface between both Node.js and browserify.

In node.js it works by synchronousily executing glsl in the command line via execSync.

Usage

NPM

glsl = glslify(file)

For example

var glslify = require('glslify-sync')
var source = glslify('./shader.glsl')

console.log(source) // your glslified GLSL source!

To use it in browserify either add it as a transform parameter

browserify main.js -t glslify-sync/transform

or add to your package.json

{
  "browserify": {
    "transform": [
      "glslify-sync/transform"
    ]
  }
}

License

MIT, see LICENSE.md for details.

Current Tags

  • 2.0.0                                ...           latest (5 years ago)

8 Versions

  • 2.0.0 [deprecated]           ...           5 years ago
  • 1.2.1 [deprecated]           ...           5 years ago
  • 1.2.0 [deprecated]           ...           5 years ago
  • 1.1.1 [deprecated]           ...           5 years ago
  • 1.1.0 [deprecated]           ...           5 years ago
  • 1.0.2 [deprecated]           ...           5 years ago
  • 1.0.1 [deprecated]           ...           5 years ago
  • 1.0.0 [deprecated]           ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (1)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |