mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-12-22 23:34:00 +07:00
Minor power node optimizations
This commit is contained in:
parent
a594d796ad
commit
5ac90d6ed3
@ -173,8 +173,7 @@ public class PowerNode extends PowerBlock{
|
||||
}
|
||||
|
||||
protected void setupColor(float satisfaction){
|
||||
Draw.color(laserColor1, laserColor2, (1f - satisfaction) * 0.86f + Mathf.absin(3f, 0.1f));
|
||||
Draw.alpha(Renderer.laserOpacity);
|
||||
Draw.color(Tmp.c1.set(laserColor1).lerp(laserColor2, (1f - satisfaction) * 0.86f + Mathf.absin(3f, 0.1f)).a(Renderer.laserOpacity));
|
||||
}
|
||||
|
||||
public void drawLaser(float x1, float y1, float x2, float y2, int size1, int size2){
|
||||
|
@ -26,4 +26,4 @@ org.gradle.caching=true
|
||||
org.gradle.internal.http.socketTimeout=100000
|
||||
org.gradle.internal.http.connectionTimeout=100000
|
||||
android.enableR8.fullMode=false
|
||||
archash=8055a9104d
|
||||
archash=010cf80f67
|
||||
|
Loading…
Reference in New Issue
Block a user