This package has been deprecated

Author message:

glslify v6 supports sync in node out of the box

glslify-sync

2.0.0 • Public • Published

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.

Package Sidebar

Install

npm i glslify-sync

Weekly Downloads

2

Version

2.0.0

License

MIT

Last publish

Collaborators

  • vorg