Render the selected planets solar system (#8875)
* Solar systems render based on the selected planet * Remove unnecessary setter * Compatibility
This commit is contained in:
@@ -18,10 +18,11 @@ public class PlanetParams{
|
|||||||
public Vec3 camUp = new Vec3(0f, 1f, 0f);
|
public Vec3 camUp = new Vec3(0f, 1f, 0f);
|
||||||
/** the unit length direction vector of the camera **/
|
/** the unit length direction vector of the camera **/
|
||||||
public Vec3 camDir = new Vec3(0, 0, -1);
|
public Vec3 camDir = new Vec3(0, 0, -1);
|
||||||
/** The sun/main planet of the solar system from which everything is rendered. */
|
/** The sun/main planet of the solar system from which everything is rendered. Deprecated use planet.solarSystem instead */
|
||||||
public Planet solarSystem = Planets.sun;
|
public @Deprecated Planet solarSystem = Planets.sun;
|
||||||
/** Planet being looked at. */
|
/** Planet being looked at. */
|
||||||
public Planet planet = Planets.serpulo;
|
public Planet planet = Planets.serpulo;
|
||||||
|
|
||||||
/** Zoom relative to planet. */
|
/** Zoom relative to planet. */
|
||||||
public float zoom = 1f;
|
public float zoom = 1f;
|
||||||
/** Alpha of orbit rings and other UI elements. */
|
/** Alpha of orbit rings and other UI elements. */
|
||||||
|
|||||||
@@ -102,8 +102,9 @@ public class PlanetRenderer implements Disposable{
|
|||||||
|
|
||||||
Events.fire(Trigger.universeDraw);
|
Events.fire(Trigger.universeDraw);
|
||||||
|
|
||||||
renderPlanet(params.solarSystem, params);
|
Planet solarSystem = params.planet.solarSystem;
|
||||||
renderTransparent(params.solarSystem, params);
|
renderPlanet(solarSystem, params);
|
||||||
|
renderTransparent(solarSystem, params);
|
||||||
|
|
||||||
bloom.render();
|
bloom.render();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user