ShadowMaterial.js 639 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. *
  4. * parameters = {
  5. * color: <THREE.Color>,
  6. * opacity: <float>
  7. * }
  8. */
  9. import { Material } from './Material';
  10. import { Color } from '../math/Color';
  11. function ShadowMaterial( parameters ) {
  12. Material.call( this );
  13. this.type = 'ShadowMaterial';
  14. this.color = new Color( 0x000000 );
  15. this.opacity = 1.0;
  16. this.lights = true;
  17. this.transparent = true;
  18. this.setValues( parameters );
  19. }
  20. ShadowMaterial.prototype = Object.create( Material.prototype );
  21. ShadowMaterial.prototype.constructor = ShadowMaterial;
  22. ShadowMaterial.prototype.isShadowMaterial = true;
  23. export { ShadowMaterial };
粤ICP备19079148号