class HmChao extends HmAncestralObject3d {
	constructor (_hipermuseu) {
		super({hipermuseu: _hipermuseu});
	}

	criarGeometria() {
		return new THREE.PlaneGeometry(10000,10000);
	}
	
	criarMaterial() {
		const textura = new THREE.TextureLoader().load("img/textura/chao/grama-media.01a.jpg");
		textura.wrapS = textura.wrapT = THREE.RepeatWrapping;
		textura.repeat.set( 25, 25 );
		textura.anisotropy = 16;
		textura.encoding = THREE.sRGBEncoding;
		return new THREE.MeshLambertMaterial({map: textura});
		/*
		var mat = new THREE.MeshPhongMaterial({ambient: 0xFFFFFF, color: 0x00FF00, specular: 0x050505});
		mat.color.setHSL(0.095, 1, 0.75);
		return mat;
		*/
	}

	criarMalha() {
		super.criarMalha();
		if (this.malha) {
			var m = this.malha.object3d;
			m.rotation.x = -Math.PI / 2;
			m.position.y = -250; // -33
			m.receiveShadow = true;
		}
		return this.malha;
	}
}