Hello,
[Context] For a specific case of shader merging, I had the idea to parse two shader files and then merge the list of variables, the content of fragment shader, vertex shader methods.
Are there any tools to do this (using GDScript)? For example, having a ShaderParser.getFragmentFunction() method or a similar tool like Antlr (then access FRAGMENT_FUNCTION rule content for example). I don't like the idea of using a regular expression (except if it's the best solution).
Thanks for your contribution.