Planet progress

This commit is contained in:
Anuken
2021-06-11 11:31:21 -04:00
parent 31ebb1d156
commit 537c8f3cc5
4 changed files with 4 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ public class Planets implements ContentList{
Simplex sim = new Simplex(id);
@Override
public float getHeight(Vec3 position){
return (float)sim.octaveNoise3D(2, 0.6, 0.3f, position.x, position.y, position.z) * 13f;
return (float)sim.octaveNoise3D(2, 0.55, 0.45f, 5f + position.x, 5f + position.y, 5f + position.z) * 14f;
}
@Override

View File

@@ -139,8 +139,6 @@ public class PlanetRenderer implements Disposable{
//render planet at offsetted position in the world
planet.draw(cam.combined, planet.getTransform(mat));
renderOrbit(planet);
for(Planet child : planet.children){
renderPlanet(child);
}
@@ -173,6 +171,8 @@ public class PlanetRenderer implements Disposable{
for(Planet child : planet.children){
renderTransparent(child);
}
renderOrbit(planet);
}
public void renderOrbit(Planet planet){

View File

@@ -606,7 +606,6 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
//autoshow
if(wasNull){
Log.info("was null, updating selected");
updateSelected();
}
}else{