Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 860 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 860 Bytes

glslify-optimize experimental

A browserify transform stream that optimizes your glslify shaders using glsl-optimizer, the library used in Unity for mobile shader optimization.

Usage

NPM

Use the glslify-optimize transform after using glslify for it to work correctly:

browserify -t glslify -t glslify-optimize
var browserify = require('browserify')

browserify('index.js')
  .transform('glslify')
  .transform('glslify-optimize')
  .pipe(process.stdout)

License

MIT. See LICENSE.md for details.