through stream that transforms glsl-parser AST nodes and rewrites variables into shorter forms
Transform glsl-parser AST nodes on-the-fly by renaming variables into shorter forms.
var tokenizer =parser =deparser =minify =processstdin// <-- the minifier// <-- "false" == no unnecessary whitespace, please.processstdin
Create a through stream that rewrites incoming declared variables.
["main"]so that the main function is not overridden.
should_mutate_storages, a boolean defaulted to
false, determines whether the minifier should attempt to rewrite variables declared as
uniform(usually you do not want to do this, as the client program is expecting specific variable names).