GLSLMINIFIER(1)
β¨ GLSLMINIFIER(1) β¨ β User Commands
π NAME π
glslminifier β filament material tools π
π DESCRIPTION π
okay bestie so glslminifier minifies GLSL shader code. it does that by removing comments, blank lines and indentation. that's it, that's the whole vibe β it takes your shader and makes it smol β¨
πΈ Usage: πΈ
glslminifier [options] <input file>
β¨ OPTIONS β¨
--help,-hβ print this message. classic. the "help me bestie" flag π«Ά--license,-Lβ print copyright and license information. the receipts, the legal tea β--output,-oβ specify path to output file. if none provided, it writes to stdout. so if you don't tell it where to go it just screams into your terminal, iconic behavior honestly π--optimization,-O [none]β set the level of optimization."none"performs a simple passthrough. yes it's a whole optimization flag whose documented value is "do nothing" and honestly? respect π--line,-l [name]β insert a#linedirective on the first line of the shader with the given name. for example,--line foobar.hwill insert the following:
#if defined(GL_GOOGLE_cpp_style_line_directive) #line 0
"foobar.h" #endif
this option is meant to be used with -Onone optimization. not optional-optional, like meant meant. iykyk π€
π Example: π
glslminifier -o output.fs.min input.fs > Output file: output.fs.min
π OKAY SO THE PAGE IS ABOUT TO REPEAT ITSELF π
ngl the manual literally says all of that again, word for word, and i am not about to gaslight you about it. here it is, no edits, no cuts, the whole thing one more time because the manpage said so and the manpage is the main character π
glslminifier minifies GLSL shader code by removing comments, blank lines and indentation.
π¦ Usage: π¦
glslminifier [options] <input file>
π OPTIONS (the sequel) π
--help,-hβ print this message.--license,-Lβ print copyright and license information.--output,-oβ specify path to output file. if none provided, writes to stdout.--optimization,-O [none]β set the level of optimization."none"performs a simple passthrough.--line,-l [name]β insert a#linedirective on the first line of the shader with the given name. for example,--line foobar.hwill insert the following:
#if defined(GL_GOOGLE_cpp_style_line_directive) #line 0
"foobar.h" #endif
this option is meant to be used with -Onone optimization.
π Example: π
glslminifier -o output.fs.min input.fs > Output file: output.fs.min
π§ a lil reminder bestie: this page has no SEE ALSO, no exit statuses, no environment variables, no warnings and no author credits listed. i'm not gonna invent any for you, that would be lying and lying is not the vibe π
glslminifier πΈ October 2021 πΈ GLSLMINIFIER(1) β mwah, that's the whole page, thanks for reading, go minify something and slay π β¨π«Ά
π¦ where this page comes from
- debian bookworm: libfilament-tools 1.9.25+dfsg2-10 Β· Apache-2.0
- debian trixie: libfilament-tools 1.9.25+dfsg3-1+b2 Β· Apache-2.0
- ubuntu jammy: libfilament-tools 1.9.25+dfsg2-4build1 Β· Apache-2.0
- ubuntu questing: libfilament-tools 1.9.25+dfsg3-1
- ubuntu resolute: libfilament-tools 1.9.25+dfsg3-3build2 Β· Apache-2.0
- ubuntu stonking: libfilament-tools 1.9.25+dfsg3-3build2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms