.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5. .TH MATC "1" "October 2021" "matc 10" "User Commands" .SH NAME matc \- filament material tools .SH DESCRIPTION matc is a command\-line tool to compile material definition. Usages: .IP matc [options] .SS "Supported input formats:" .IP Filament material definition (.mat) .SH OPTIONS .HP \fB\-\-help\fR, \fB\-h\fR .IP Print this message .HP \fB\-\-license\fR .IP Print copyright and license information .HP \fB\-\-output\fR, \fB\-o\fR .IP Specify path to output file .HP \fB\-\-platform\fR, \fB\-p\fR .IP Shader family to generate: desktop, mobile or all (default) .HP \fB\-\-optimize\-size\fR, \fB\-S\fR .IP Optimize generated shader code for size instead of just performance .HP \fB\-\-api\fR, \fB\-a\fR .IP Specify the target API: opengl (default), vulkan, metal, or all This flag can be repeated to individually select APIs for inclusion: .IP matc \fB\-\-api\fR opengl \fB\-\-api\fR metal ... .HP \fB\-\-define\fR, \fB\-D\fR .IP Add a preprocessor define macro via =. defaults to 1 if omitted. Can be repeated to specify multiple definitions: .IP matc \fB\-Dfoo\fR=\fI\,1\/\fR \fB\-Dbar\fR \fB\-Dbuzz\fR=\fI\,100\/\fR ... .HP \fB\-\-reflect\fR, \fB\-r\fR .IP Reflect the specified metadata as JSON: parameters .HP \fB\-\-variant\-filter=\fR, \fB\-V\fR .IP Filter out specified comma\-separated variants: .IP directionalLighting, dynamicLighting, shadowReceiver, skinning, vsm, fog .IP This variant filter is merged with the filter from the material, if any .HP \fB\-\-version\fR, \fB\-v\fR .IP Print the material version number .SS "Internal use and debugging only:" .HP \fB\-\-optimize\-none\fR, \fB\-g\fR .IP Disable all shader optimizations, for debugging .HP \fB\-\-preprocessor\-only\fR, \fB\-E\fR .IP Optimize shaders by running only the preprocessor .HP \fB\-\-raw\fR, \fB\-w\fR .IP Compile a raw GLSL shader into a SPIRV binary chunk .HP \fB\-\-output\-format\fR, \fB\-f\fR .IP Specify output format: blob (default) or header .HP \fB\-\-debug\fR, \fB\-d\fR .IP Generate extra data for debugging .HP \fB\-\-print\fR, \fB\-t\fR .IP Print generated shaders for debugging