mergeUniforms function
Implementation
Map<String, dynamic> mergeUniforms(uniforms) {
Map<String, dynamic> merged = <String, dynamic>{};
for (int u = 0; u < uniforms.length; u++) {
final tmp = cloneUniforms(uniforms[u]);
for (final p in tmp.keys) {
merged[p] = tmp[p];
}
}
return merged;
}