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

	criarGeometria() {
		return new THREE.SphereGeometry(4000, 32, 15);
	}

	criarMaterial() {
		this.vertexShader = document.getElementById('vertexShader').textContent;
		this.fragmentShader = document.getElementById('fragmentShader').textContent;
		this.uniforms = {
			topColor: {/*type: "c", */value: new THREE.Color(0x0077ff)},
			bottomColor: {/*type: "c",*/value: new THREE.Color(0xffffcc)},
			offset: {/*type: "f",*/ value: 33},
			exponent: {/*type: "f",*/ value: 0.6}
		}
		//scene.fog.color.copy( uniforms[ "bottomColor" ].value );
		
		if (this.hipermuseu.luzHemisferica)
			this.uniforms.topColor.value.copy(this.hipermuseu.luzHemisferica.luz.color);

		return new THREE.ShaderMaterial({
			vertexShader: this.vertexShader,
			fragmentShader: this.fragmentShader,
			uniforms: this.uniforms,
			side: THREE.BackSide});
	}

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