Draws build request bridges using bridge opacity (#4180)

* Update ItemBridge.java

* Introduce renderer.bridgeOpacity
This commit is contained in:
Patrick 'Quezler' Mounier
2021-01-02 19:06:13 +01:00
committed by GitHub
parent bf81565e93
commit fe92ce557f
3 changed files with 13 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ public class Renderer implements ApplicationListener{
public @Nullable Bloom bloom;
public FrameBuffer effectBuffer = new FrameBuffer();
public float laserOpacity = 1f;
public float laserOpacity = 1f, bridgeOpacity = 1f;
public boolean animateShields, drawWeather = true;
/** minZoom = zooming out, maxZoom = zooming in */
public float minZoom = 1.5f, maxZoom = 6f;
@@ -71,6 +71,7 @@ public class Renderer implements ApplicationListener{
camerascale = Mathf.lerpDelta(camerascale, dest, 0.1f);
if(Mathf.equal(camerascale, dest, 0.001f)) camerascale = dest;
laserOpacity = settings.getInt("lasersopacity") / 100f;
bridgeOpacity = settings.getInt("bridgeopacity") / 100f;
animateShields = settings.getBool("animatedshields");
if(landTime > 0){