dynamically define uniforms for shaders and map them