24 lines
684 B
Plaintext
24 lines
684 B
Plaintext
|
|
Usage:
|
|
glslify {OPTIONS} < index.glsl
|
|
|
|
glslify is a Node.js-style module build system, much like
|
|
browserify, except for GLSL shaders! It allows you to share
|
|
and consume shader code on npm.
|
|
|
|
Options:
|
|
-t, --transform Apply a local GLSL source transform to your bundle.
|
|
-o, --output Specify an output file to write your shader to.
|
|
-v, --version Output version number
|
|
-h, --help Display this message.
|
|
|
|
Read index.glsl and write to output.glsl:
|
|
glslify index.glsl -o output.glsl
|
|
|
|
Alternatively:
|
|
cat index.glsl | glslify > output.glsl
|
|
|
|
To use the glslify-hex transform:
|
|
npm install glslify-hex
|
|
glslify index.glsl -t glslify-hex -o output.glsl
|