ShadowMaterial.js 513 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { Material } from './Material.js';
  2. import { Color } from '../math/Color.js';
  3. class ShadowMaterial extends Material {
  4. constructor( parameters ) {
  5. super();
  6. this.isShadowMaterial = true;
  7. this.type = 'ShadowMaterial';
  8. this.color = new Color( 0x000000 );
  9. this.transparent = true;
  10. this.fog = true;
  11. this.setValues( parameters );
  12. }
  13. copy( source ) {
  14. super.copy( source );
  15. this.color.copy( source.color );
  16. this.fog = source.fog;
  17. return this;
  18. }
  19. }
  20. export { ShadowMaterial };