Cloud improvements

This commit is contained in:
Anuken
2021-09-05 10:15:32 -04:00
parent 9feedabf07
commit dedfd8efd3
4 changed files with 6 additions and 6 deletions

View File

@@ -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);
}