.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5.
.TH GLSLMINIFIER "1" "October 2021" "glslminifier " "User Commands"
.SH NAME
glslminifier \- filament material tools
.SH DESCRIPTION
glslminifier minifies GLSL shader code by removing comments, blank lines and indentation.
.SS "Usage:"
.IP
glslminifier [options]
.SH OPTIONS
.HP
\fB\-\-help\fR, \fB\-h\fR
.IP
Print this message.
.HP
\fB\-\-license\fR, \fB\-L\fR
.IP
Print copyright and license information.
.HP
\fB\-\-output\fR, \fB\-o\fR
.IP
Specify path to output file. If none provided, writes to stdout.
.HP
\fB\-\-optimization\fR, \fB\-O\fR [none]
.IP
Set the level of optimization. "none" performs a simple passthrough.
.HP
\fB\-\-line\fR, \fB\-l\fR [name]
.IP
Insert a #line directive on the first line of the shader with the given name.
For example, \fB\-\-line\fR foobar.h will insert the following:
.IP
#if defined(GL_GOOGLE_cpp_style_line_directive)
#line 0 "foobar.h"
#endif
.IP
This option is meant to be used with \fB\-Onone\fR optimization.
.SS "Example:"
.IP
glslminifier \fB\-o\fR output.fs.min input.fs
> Output file: output.fs.min
.PP
glslminifier minifies GLSL shader code by removing comments, blank lines and indentation.
.SS "Usage:"
.IP
glslminifier [options]
.HP
\fB\-\-help\fR, \fB\-h\fR
.IP
Print this message.
.HP
\fB\-\-license\fR, \fB\-L\fR
.IP
Print copyright and license information.
.HP
\fB\-\-output\fR, \fB\-o\fR
.IP
Specify path to output file. If none provided, writes to stdout.
.HP
\fB\-\-optimization\fR, \fB\-O\fR [none]
.IP
Set the level of optimization. "none" performs a simple passthrough.
.HP
\fB\-\-line\fR, \fB\-l\fR [name]
.IP
Insert a #line directive on the first line of the shader with the given name.
For example, \fB\-\-line\fR foobar.h will insert the following:
.IP
#if defined(GL_GOOGLE_cpp_style_line_directive)
#line 0 "foobar.h"
#endif
.IP
This option is meant to be used with \fB\-Onone\fR optimization.
.SS "Example:"
.IP
glslminifier \fB\-o\fR output.fs.min input.fs
> Output file: output.fs.min