import { Element } from "./Element.js"; export class Cube extends Element { constructor(color) { super(); this.data = new THREE.Mesh( new THREE.BoxGeometry(1, 1, 1), new THREE.MeshBasicMaterial({ color: color }) ); // Create shadows this.data.castShadow = true; } }