@@ -110,7 +110,7 @@ public class Pseudo3DFx{
110
110
float radius = e .rotation * e .fout ();
111
111
if (radius > 0.001f ){
112
112
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 );
114
114
115
115
if (renderer .animateShields ){
116
116
Draw .z (Layer .shields + 0.001f );
@@ -120,7 +120,7 @@ public class Pseudo3DFx{
120
120
Draw .alpha (0.09f + Mathf .clamp (0.08f ));
121
121
}
122
122
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 ) -> {
124
124
Fill .quad (x1 , y1 , x2 , y2 , x3 , y3 , x4 , y4 );
125
125
Fill .polyPoint (x4 , y4 );
126
126
});
@@ -132,8 +132,7 @@ public class Pseudo3DFx{
132
132
Draw .z (Layer .shields + 0.001f );
133
133
}
134
134
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 ) -> {
137
136
Lines .line (x1 , y1 , x2 , y2 );
138
137
Lines .line (x1 , y1 , x4 , y4 );
139
138
Lines .line (x2 , y2 , x3 , y3 );
0 commit comments