mergeUniforms function

Map<String, dynamic> mergeUniforms(
  1. dynamic uniforms
)

Implementation

Map<String, dynamic> mergeUniforms(uniforms) {
  Map<String, dynamic> merged = <String, dynamic>{};

  for (var u = 0; u < uniforms.length; u++) {
    var tmp = cloneUniforms(uniforms[u]);

    for (var p in tmp.keys) {
      merged[p] = tmp[p];
    }
  }

  return merged;
}