Minor power node optimizations
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user