@@ -33,21 +33,14 @@ public class OtherFx{
3333 Floor f = t .floor ();
3434 if (f instanceof SteamVent ) return ;
3535 TextureRegion region = f .variantRegions [Mathf .randomSeed (t .pos (), 0 , Math .max (0 , f .variantRegions .length - 1 ))];
36- float x = t .drawx (), y = t .drawy () + e .rotation * e .fout ();
37-
38- Draw .z (Draw .z () - ((float )t .y / world .height ()) / 1000f );;
39- for (int i = 0 ; i < region .width ; i ++){
40- PixmapRegion image = Core .atlas .getPixmap (region );
41- float c1 = Tmp .c1 .set (image .get (i , 0 )).toFloatBits ();
42- float c2 = Tmp .c2 .set (Tmp .c1 ).lerp (Color .black , e .fout () / 4f ).toFloatBits ();
43-
44- float px = x - region .width / 4f / 2f + i / 4f , py = y - region .height / 4f / 2f , by = py - e .rotation * e .fout ();
45- float p = 1f / 8f ;
46-
47- Fill .quad (px - p , by , c2 , px - p , py , c1 , px + p , py , c1 , px + p , by , c2 );
48- }
49-
50- rect (region , x , y );
36+ float x = t .drawx (), riseAmount = e .rotation * e .fout (), y = t .drawy ();
37+
38+ Draw .z (Draw .z () - ((float )t .y / world .height ()) / 1000f );
39+ TextureRegion riseRegion = Tmp .tr1 ;
40+ riseRegion .set (region );
41+ riseRegion .set (region .u , region .v , region .u2 , region .v + (region .v2 - region .v ) / region .height );
42+ Draw .rect (riseRegion , x , y - region .height / 8f + riseAmount / 2f , region .width / 4f , riseAmount );
43+ rect (region , x , y + riseAmount );
5144 }).layer (Layer .floor + 0.01f ),
5245
5346 concretionSlam = new Effect (23 , e -> {
0 commit comments