Partial 7.0 merge - API preview

This commit is contained in:
Anuken
2021-06-02 11:08:08 -04:00
parent ea75a357ca
commit 28b235ef07
531 changed files with 12356 additions and 6286 deletions

View File

@@ -94,8 +94,12 @@ public class PlanetRenderer implements Disposable{
cam.position.setZero();
cam.update();
Gl.depthMask(false);
skybox.render(cam.combined);
Gl.depthMask(true);
cam.position.set(lastPos);
cam.update();
@@ -172,7 +176,7 @@ public class PlanetRenderer implements Disposable{
}
public void renderOrbit(Planet planet){
if(planet.parent == null || !planet.visible()) return;
if(planet.parent == null || !planet.visible() || orbitAlpha <= 0.02f) return;
Vec3 center = planet.parent.position;
float radius = planet.orbitRadius;
@@ -182,6 +186,8 @@ public class PlanetRenderer implements Disposable{
}
public void renderSectors(Planet planet){
if(orbitAlpha <= 0.02f) return;
//apply transformed position
batch.proj().mul(planet.getTransform(mat));
@@ -203,6 +209,7 @@ public class PlanetRenderer implements Disposable{
public void drawArc(Planet planet, Vec3 a, Vec3 b){
drawArc(planet, a, b, Pal.accent, Color.clear, 1f);
}
public void drawArc(Planet planet, Vec3 a, Vec3 b, Color from, Color to, float length){
drawArc(planet, a, b, from, to, length, 80f, 25);
}