Convert .shader to .glsl

I’m still new to shaders, and using ShaderForge to create .shader files. I’ve created a few shaders now and am hoping to find a way to throw them into Substance Painter to make the texturing process a bit easier, the problem is Substance Painter only accepts .glsl files.

I was reading that unity compiles the .shaders to .glsl when it’s needed (mobile) or something? Is it possible to grab these files from somewhere after they’ve been compiled so I can load them into substance painter? If not, is there any tricks to compile them to .glsl automatically, or is this even possible?

There’s a handful of shaders I’d like to use so the idea of rewriting them by hand would be tedious, but an option as a last resort.

Any tips? Thanks!

Bump, I am also interested in this.