function updatePrimitiveShadows(runtimePrimitive, options) {
  const drawCommand = runtimePrimitive.drawCommand;
  drawCommand.shadows = options.shadowMode;
}
Traverses through all draw commands and changes the shadow settings.

@param {ShadowMode} shadowMode The new shadow settings.

@private