plane = {
const geometry = new THREE.PlaneGeometry(options.width, options.height, options.widthSegments, options.heightSegments);
const material = new THREE.ShaderMaterial({
uniforms: {
bumpTexture: { value: heightMap },
bumpScale: { value: 0.05 },
terrainTexture: { value: textureMap }
},
transparent: false,
side: THREE.DoubleSide,
vertexShader: earthShader.vertexShader,
fragmentShader: earthShader.fragmentShader,
});
const plane = new THREE.Mesh(geometry, material);
plane.rotation.set(-Math.PI / 2, 0, 0)
console.log('plane', plane);
return plane;
}