starry / backend /libs /three /materials /ShadowMaterial.js
k-l-lambda's picture
feat: add Python ML services (CPU mode) with model download
2b7aae2
import { Material } from './Material.js';
import { Color } from '../math/Color.js';
/**
* parameters = {
* color: <THREE.Color>
* }
*/
class ShadowMaterial extends Material {
constructor(parameters) {
super();
this.type = 'ShadowMaterial';
this.color = new Color(0x000000);
this.transparent = true;
this.setValues(parameters);
}
copy(source) {
super.copy(source);
this.color.copy(source.color);
return this;
}
}
ShadowMaterial.prototype.isShadowMaterial = true;
export { ShadowMaterial };