invWavelength4.z = 1.0f / FastMath.pow(wavelength.z, 4.0f);
}
private void createGround(String groundTexture) {
Spatial geom = createSphere();
geom.scale(getInnerRadius());
mPlanetGround = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md");
mPlanetGround.setTexture("DiffuseMap", assetManager.loadTexture(groundTexture));
mPlanetGround.setTexture("GlowMap", assetManager.loadTexture("Textures/Planets/Earth/Earthlights2_1280.jpg"));
mPlanetGround.setFloat("Shininess", 0.01f); // [1,128]
geom.setMaterial(mPlanetGround);