Cloud improvements
This commit is contained in:
@@ -38,7 +38,7 @@ public class HexSkyMesh extends PlanetMesh{
|
||||
}
|
||||
|
||||
public float relRot(){
|
||||
return Time.globalTime * speed / 34f;
|
||||
return Time.globalTime * speed / 40f;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -151,6 +151,8 @@ public class PlanetRenderer implements Disposable{
|
||||
public void renderTransparent(Planet planet){
|
||||
if(!planet.visible()) return;
|
||||
|
||||
planet.drawClouds(cam.combined, planet.getTransform(mat));
|
||||
|
||||
if(planet.hasGrid() && planet == this.planet){
|
||||
renderSectors(planet);
|
||||
}
|
||||
@@ -159,8 +161,6 @@ public class PlanetRenderer implements Disposable{
|
||||
planet.drawAtmosphere(atmosphere, cam);
|
||||
}
|
||||
|
||||
planet.drawClouds(cam.combined, planet.getTransform(mat));
|
||||
|
||||
for(Planet child : planet.children){
|
||||
renderTransparent(child);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user