import { TextureLoader , SphereBufferGeometry , MeshLambertMaterial , AdditiveBlending , Mesh , } from "three" ; import cloud from "../img/earth_cloud.png" ; export const createEarthCloudImageMesh = ( radius ) => { var textureLoader = new TextureLoader ( ) ; var texture = textureLoader . load ( cloud ) ; var geometry = new SphereBufferGeometry ( radius , 96 , 96 ) ; var material = new MeshLambertMaterial ( { map : texture , transparent : true , opacity : 1 , blending : AdditiveBlending , } ) ; var mesh = new Mesh ( geometry , material ) ; return mesh ; } ;