Skip to content

Commit 8481123

Browse files
committed
Fix shield projector shrink effect
1 parent b266476 commit 8481123

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/progressed/content/effects/Pseudo3DFx.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public class Pseudo3DFx{
110110
float radius = e.rotation * e.fout();
111111
if(radius > 0.001f){
112112
Draw.color(e.color);
113-
float[] corners = ShieldProjector.getShieldCorners(e.x, e.y, e.rotation, data.sides, data.rotation);
113+
float[] corners = ShieldProjector.getShieldCorners(e.x, e.y, radius, data.sides, data.rotation);
114114

115115
if(renderer.animateShields){
116116
Draw.z(Layer.shields + 0.001f);
@@ -120,7 +120,7 @@ public class Pseudo3DFx{
120120
Draw.alpha(0.09f + Mathf.clamp(0.08f));
121121
}
122122
Fill.polyBegin();
123-
ShieldProjector.drawCorners(corners, data.height, data.sides, (x1, y1, x2, y2, x3, y3, x4, y4) -> {
123+
ShieldProjector.drawCorners(corners, data.height * e.fout(), data.sides, (x1, y1, x2, y2, x3, y3, x4, y4) -> {
124124
Fill.quad(x1, y1, x2, y2, x3, y3, x4, y4);
125125
Fill.polyPoint(x4, y4);
126126
});
@@ -132,8 +132,7 @@ public class Pseudo3DFx{
132132
Draw.z(Layer.shields + 0.001f);
133133
}
134134
Draw.alpha(1f);
135-
ShieldProjector.drawCorners(corners, data.height, data.sides, (x1, y1, x2, y2, x3, y3, x4, y4) -> {
136-
//Lines.quad(x1, y1, x2, y2, x3, y3, x4, y4); //Corners expand out wildly for some reason.
135+
ShieldProjector.drawCorners(corners, data.height * e.fout(), data.sides, (x1, y1, x2, y2, x3, y3, x4, y4) -> {
137136
Lines.line(x1, y1, x2, y2);
138137
Lines.line(x1, y1, x4, y4);
139138
Lines.line(x2, y2, x3, y3);

0 commit comments

Comments
 (0)