Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -18,10 +18,11 @@ public class PlanetParams{
|
||||
public Vec3 camUp = new Vec3(0f, 1f, 0f);
|
||||
/** the unit length direction vector of the camera **/
|
||||
public Vec3 camDir = new Vec3(0, 0, -1);
|
||||
/** The sun/main planet of the solar system from which everything is rendered. */
|
||||
public Planet solarSystem = Planets.sun;
|
||||
/** The sun/main planet of the solar system from which everything is rendered. Deprecated use planet.solarSystem instead */
|
||||
public @Deprecated Planet solarSystem = Planets.sun;
|
||||
/** Planet being looked at. */
|
||||
public Planet planet = Planets.serpulo;
|
||||
|
||||
/** Zoom relative to planet. */
|
||||
public float zoom = 1f;
|
||||
/** Alpha of orbit rings and other UI elements. */
|
||||
|
||||
@@ -102,8 +102,9 @@ public class PlanetRenderer implements Disposable{
|
||||
|
||||
Events.fire(Trigger.universeDraw);
|
||||
|
||||
renderPlanet(params.solarSystem, params);
|
||||
renderTransparent(params.solarSystem, params);
|
||||
Planet solarSystem = params.planet.solarSystem;
|
||||
renderPlanet(solarSystem, params);
|
||||
renderTransparent(solarSystem, params);
|
||||
|
||||
bloom.render();
|
||||
|
||||
|
||||
@@ -879,6 +879,17 @@ public class ContentParser{
|
||||
Color.valueOf(data.getString("color2", data.getString("color", "ffffff"))),
|
||||
data.getInt("colorOct", 1), data.getFloat("colorPersistence", 0.5f), data.getFloat("colorScale", 1f),
|
||||
data.getFloat("colorThreshold", 0.5f));
|
||||
case "SunMesh" -> {
|
||||
var cvals = data.get("colors").asStringArray();
|
||||
var colors = new Color[cvals.length];
|
||||
for(int i=0; i<cvals.length; i++){
|
||||
colors[i] = Color.valueOf(cvals[i]);
|
||||
}
|
||||
|
||||
yield new SunMesh(planet, data.getInt("divisions", 1), data.getInt("octaves", 1), data.getFloat("persistence", 0.5f),
|
||||
data.getFloat("scl", 1f), data.getFloat("pow", 1f), data.getFloat("mag", 0.5f),
|
||||
data.getFloat("colorScale", 1f), colors);
|
||||
}
|
||||
case "HexSkyMesh" -> new HexSkyMesh(planet,
|
||||
data.getInt("seed", 0), data.getFloat("speed", 0), data.getFloat("radius", 1f),
|
||||
data.getInt("divisions", 3), Color.valueOf(data.getString("color", "ffffff")), data.getInt("octaves", 1),
|
||||
|
||||
Reference in New Issue
Block a user