Cloud improvements
This commit is contained in:
@@ -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