src/components/material.js
function parseBlending (blending) {
  switch (blending) {
    case 'none': {
      return THREE.NoBlending;
    }
    case 'additive': {
      return THREE.AdditiveBlending;
    }
    case 'subtractive': {
      return THREE.SubtractiveBlending;
    }
    case 'multiply': {
      return THREE.MultiplyBlending;
    }
    default: {
      return THREE.NormalBlending;
    }
  }
}
function parseBlending (blending) {
  switch (blending) {
    case 'none': {
      return THREE.NoBlending;
    }
    case 'additive': {
      return THREE.AdditiveBlending;
    }
    case 'subtractive': {
      return THREE.SubtractiveBlending;
    }
    case 'multiply': {
      return THREE.MultiplyBlending;
    }
    default: {
      return THREE.NormalBlending;
    }
  }
}
function parseBlending ( blending ) { switch ( blending ) { case 'none' : { return THREE . NoBlending ; } case 'additive' : { return THREE . AdditiveBlending ; } case 'subtractive' : { return THREE . SubtractiveBlending ; } case 'multiply' : { return THREE . MultiplyBlending ; } default : { return THREE . NormalBlending ; } } }
Return a three.js constant determining blending

@param {string} [blending=normal]
- `none`, additive`, `subtractive`,`multiply` or `normal`.
@returns {number}
Return a three . js constant determining blending