Shader_Minifier icon indicating copy to clipboard operation
Shader_Minifier copied to clipboard

Minify and obfuscate GLSL or HLSL code

Results 85 Shader_Minifier issues
Sort by recently updated
recently updated
newest added

The parser throws an error when given a function whose return type has a precision qualifier. Input: ``` lowp float foo(lowp float bar) { return 1.0; } ``` Error: ```...

It would be nice if shader-minifier would avoid decimal places in scientific notation numbers, if possible. For example, write `48e3` instead of `4.8e4`. This saves one character, the decimal point....

I'm running into a weird issue where the minified code is containing non-ascii characters. I can repro the issue with the following HLSL shader (just pasting this into the CS...

Getting an error in 1.4.0. while 1.3.6. runs correctly Test code: ```glsl highp float random(vec2 co) { highp float a = 12.9898; highp float b = 78.233; highp float c...

could be useful.

you cannot swap order of multiplies for matrices; it changes the meaning. I have vec4 v = mat33 * (vec3 * float) which is transformed into: vec4 v = (vec3...

If a function has `void` return type, takes no arguments, and does not use the `return` statement, it should be possible to inline it. Separating part of a larger function...

When inlining a function, Minifier behaves as though all parameters are qualified `inout`. Contrived example reproducing the bug: ```GLSL out vec4 O; float i_func(float p) { return p-=2.,p*p; } void...

It should (in some circumstances) be possible to inline a function that follows these rules: - Is of `void` type, or ends in an unconditional return statement. - Contains no...