Generate g_* uniform declarations in shaders

I think it might be nice if jME could automatically generate/declare/insert the needed uniforms when assembling a shader. That way you don’t have to write them your self and there would no inconsistency between shader source files and j3md files.

I have not thinked this through a second time, it might be a stupid idea…

Actually I thought of doing it the other way. Parse the shader files and determine which globals are actually needed. This would also allow you to combine shader libraries together without having to know which one declared which global.

hmm, that would be really nice :slight_smile: