Better space skybox scaling

This commit is contained in:
Anuken
2020-12-16 19:52:10 -05:00
parent cd7d2163b9
commit b8efed9eaf

View File

@@ -89,8 +89,16 @@ public class PlanetRenderer implements Disposable{
beginBloom();
//render skybox at 0,0,0
Vec3 lastPos = Tmp.v31.set(cam.position);
cam.position.setZero();
cam.update();
skybox.render(cam.combined);
cam.position.set(lastPos);
cam.update();
Events.fire(Trigger.universeDraw);
renderPlanet(solarSystem);