Open larsmaxfield opened 1 month ago
One route could be a single unbounded variable-length array in each shader which would all the custom variables specified by a user.
https://computergraphics.stackexchange.com/questions/5323/dynamic-array-in-glsl
https://www.khronos.org/opengl/wiki/Shader_Storage_Buffer_Object
Allow users to inject their own custom variables (uniforms) in the custom shader programs of the elevation layer.