scene = {
const scene = new THREE.Scene();
const light = new THREE.HemisphereLight('#fff', '#666', 1.5);
light.position.set(0, 500, 0);
scene.add(light);
const waterMaterial = new THREE.MeshBasicMaterial({color: '#555', transparent: true});
const sphere = new THREE.SphereGeometry(200, 100, 100);
const baseLayer = new THREE.Mesh(sphere, waterMaterial);
const mapTexture = new THREE.Texture(map);
mapTexture.needsUpdate = true;
const mapMaterial = new THREE.MeshBasicMaterial({ map: mapTexture, transparent: true });
const mapLayer = new THREE.Mesh(sphere, mapMaterial);
var root = new THREE.Object3D(map);
root.add(baseLayer);
root.add(mapLayer);
scene.add(root);
function render() {
root.rotation.y += 0.02;
requestAnimationFrame(render);
renderer.render(scene, camera);
}
render();
return scene;
}