This commit is contained in:
Anuken
2020-05-10 13:34:52 -04:00
parent dabc891791
commit 2cb9cfb097
17 changed files with 65 additions and 58 deletions

View File

@@ -177,13 +177,13 @@ public class PlanetDialog extends FloatingDialog{
projector.proj(cam.combined);
batch.proj(cam.combined);
bloom.capture();
beginBloom();
skybox.render(cam.combined);
renderPlanet(solarSystem);
bloom.render();
endBloom();
Gl.enable(Gl.blend);
@@ -217,6 +217,14 @@ public class PlanetDialog extends FloatingDialog{
cam.update();
}
private void beginBloom(){
bloom.capture();
}
private void endBloom(){
bloom.render();
}
private void renderPlanet(Planet planet){
//render planet at offsetted position in the world
planet.mesh.render(cam.combined, planet.getTransform(mat));
@@ -227,7 +235,7 @@ public class PlanetDialog extends FloatingDialog{
renderSectors(planet);
}
if(planet.parent != null && planet.hasAtmosphere){
if(planet.parent != null && planet.hasAtmosphere && Core.settings.getBool("atmosphere")){
Blending.additive.apply();
Shaders.atmosphere.camera = cam;

View File

@@ -317,6 +317,7 @@ public class SettingsMenuDialog extends SettingsDialog{
}
graphics.checkPref("effects", true);
graphics.checkPref("atmosphere", !mobile);
graphics.checkPref("destroyedblocks", true);
graphics.checkPref("blockstatus", false);
graphics.checkPref("playerchat", true);