1 |
|
2 | Usage:
|
3 | glslify {OPTIONS} < index.glsl
|
4 |
|
5 | glslify is a Node.js-style module build system, much like
|
6 | browserify, except for GLSL shaders! It allows you to share
|
7 | and consume shader code on npm.
|
8 |
|
9 | Options:
|
10 | -t, --transform Apply a local GLSL source transform to your bundle.
|
11 | -o, --output Specify an output file to write your shader to.
|
12 | -h, --help Display this message.
|
13 |
|
14 | Read index.glsl and write to output.glsl:
|
15 | glslify index.glsl -o output.glsl
|
16 |
|
17 | Alternatively:
|
18 | cat index.glsl | glslify > output.glsl
|
19 |
|
20 | To use the glslify-hex transform:
|
21 | npm install glslify-hex
|
22 | glslify index.glsl -t glslify-hex -o output.glsl
|