private Material mat;
private Geometry atmo;
@Override
public void simpleInitApp() {
Sphere atmoSphere = new Sphere(48, 48, radius, false, true);
mat = new Material(assetManager, "MatDefs/SimpleAtmoshere.j3md");
mat.setFloat("radius", radius);
atmo = new Geometry("atmo_Planet", atmoSphere);
Vector3f pos = new Vector3f(5,0,0);
atmo.setLocalTranslation(pos);
mat.setVector3("v3Center", pos);
atmo.setMaterial(mat);
rootNode.attachChild(atmo);
Sphere planetSphere = new Sphere(48, 48, radius * 0.8f);
Material planteMat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
planteMat.setColor("Color", ColorRGBA.Green);
Geometry planet = new Geometry("geo_Planet", planetSphere);
planet.setLocalTranslation(pos);
planet.setMaterial(planteMat);