Minor power node optimizations

This commit is contained in:
Anuken
2024-07-23 11:55:09 -04:00
parent a594d796ad
commit 5ac90d6ed3
2 changed files with 2 additions and 3 deletions

View File

@@ -173,8 +173,7 @@ public class PowerNode extends PowerBlock{
} }
protected void setupColor(float satisfaction){ protected void setupColor(float satisfaction){
Draw.color(laserColor1, laserColor2, (1f - satisfaction) * 0.86f + Mathf.absin(3f, 0.1f)); Draw.color(Tmp.c1.set(laserColor1).lerp(laserColor2, (1f - satisfaction) * 0.86f + Mathf.absin(3f, 0.1f)).a(Renderer.laserOpacity));
Draw.alpha(Renderer.laserOpacity);
} }
public void drawLaser(float x1, float y1, float x2, float y2, int size1, int size2){ public void drawLaser(float x1, float y1, float x2, float y2, int size1, int size2){

View File

@@ -26,4 +26,4 @@ org.gradle.caching=true
org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.socketTimeout=100000
org.gradle.internal.http.connectionTimeout=100000 org.gradle.internal.http.connectionTimeout=100000
android.enableR8.fullMode=false android.enableR8.fullMode=false
archash=8055a9104d archash=010cf80f67