Open aW4KeNiNG opened 2 months ago
The behavior is indeed surprising.
For now, use --no-renaming-list vColor,main
to keep main
.
The behavior shouldn't be changed as it is working as described, but this particular gotcha could be pointed out in documentation.
No renaming list is not removing functions, but rather:
no-renaming-list
functions are not removedno-renaming-list
is main
(and mainImage
, because of Shadertoy?)
The minimal case is:
using
shader_minifier.exe -o output.glsl --format text --no-renaming-list "vColor" input.glsl
the result is: