ParticleCircleMaterial.js 620 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @author mr.doob / http://mrdoob.com/
  3. *
  4. * parameters = {
  5. * color: <hex>,
  6. * opacity: <float>,
  7. * blending: THREE.NormalBlending
  8. * }
  9. */
  10. THREE.ParticleCircleMaterial = function ( parameters ) {
  11. this.id = THREE.MaterialCounter.value ++;
  12. this.color = new THREE.Color( 0xffffff );
  13. this.opacity = 1;
  14. this.blending = THREE.NormalBlending;
  15. if ( parameters ) {
  16. if ( parameters.color !== undefined ) this.color.setHex( parameters.color );
  17. if ( parameters.opacity !== undefined ) this.opacity = parameters.opacity;
  18. if ( parameters.blending !== undefined ) this.blending = parameters.blending;
  19. }
  20. };
粤ICP备19079148号