function getGlslField(type, index) {
  if (type === MetadataType.SCALAR) {
    return "";
  }
  return `[${index}]`;
}
Gets the GLSL field

@function

@param {MetadataType} type
@param {number} index
@returns {string}

@private