glsltc is the default compiler front-end for the GLSLT language. To use the GLSLT transforms from Rust or Python code, see the documentation for the glslt crate.
Extract the pre-built binary for your platform from the
releases somewhere in your $PATH
.
Alternatively, you may compile GLSLT from source and install it using cargo install --force .
```bash GLSL Template compiler
Usage: glsltc [OPTIONS] [INPUT]...
Arguments: [INPUT]... Input template files
Options: -q, --quiet Quiet mode -v, --verbose... Verbose mode. Repeat to increase verbosity -o, --output
```bash
sdf.glsl
to the output file output.glsl
glsltc -o output.glsl sdf.glsl
sdf.glsl
to the output file output.glsl
. Only keepmainImage
function (minifying mode).glsltc -o output.glsl -K=mainImage sdf.glsl ```
Vincent Tavernier vince.tavernier@gmail.com