plane = {
const geometry = new THREE.PlaneGeometry(options.width, options.height , options.widthSegment, options.heightSegment);
const material = new THREE.ShaderMaterial({
uniforms: {
u_map: {
value: new THREE.TextureLoader().load(CRPZ)
},
u_bump: {
value: new THREE.TextureLoader().load(CRPZ)
},
u_color: {
value: new THREE.Color('rgb(255, 255, 255)')
},
u_opacity: {
value: 1.0
},
time: {
value: 1.0
},
resolution: {
value: new THREE.Vector2()
},
bumpScale: { value: 0.02 }
},
transparent: true,
vertexShader: earthShader.vertexShader,
fragmentShader: earthShader.fragmentShader,
});
const plane = new THREE.Mesh(geometry, material);
plane.rotation.set(-Math.PI / 2, 0, 0);
return plane;
}