import { TextureLoader , SpriteMaterial , Sprite } from "three" ; export const earthGlow = ( radius , img , scale ) => { var textureLoader = new TextureLoader ( ) ; var texture = textureLoader . load ( img ) ; var spriteMaterial = new SpriteMaterial ( { map : texture , transparent : true , } ) ; var sprite = new Sprite ( spriteMaterial ) ; sprite . scale . set ( radius * scale , radius * scale , 1 ) ; return sprite ; } ;