remove SHIT
authorhgn <hgodden00@gmail.com>
Fri, 31 Oct 2025 01:12:48 +0000 (01:12 +0000)
committerhgn <hgodden00@gmail.com>
Fri, 31 Oct 2025 01:12:48 +0000 (01:12 +0000)
source/engine/model.h
source/engine/vg_tex.c

index bea0d129acb7eb44e093ec578d088116f5b70ffe..f6b260c4fd21e255aba40b45b052fdc698642fd8 100644 (file)
@@ -49,7 +49,9 @@ enum material_flag
    k_material_flag_ghosts      =
       k_material_flag_boundary|
       k_material_flag_invisible|
-      k_material_flag_walking
+      k_material_flag_walking,
+
+   k_material_flag_spritesheet      = 0x1000
 };
 
 #pragma pack(push,1)
index fb0b349916e42e36a24e827776c9e84cbd7ebe2a..01559f79fbd0592f5902c98163e9ebbdb0b109a9 100644 (file)
@@ -108,40 +108,6 @@ void vg_qoi_stream_decode( struct qoi_desc *desc, struct stream *stream, u8 *pix
             pixels[ ((row*desc->width) + x)*desc->channels + i ] = px.rgba[i];
       }
    }
-
-   if( desc->channels == 4 )
-   {
-      for( i32 y=0; y<desc->height; y ++ )
-      {
-         for( i32 x=0; x<desc->width; x ++ )
-         {
-            u32 ia = ((y*desc->width)+x)*4;
-            if( pixels[ ia+3 ] == 0 )
-            {
-               for( i32 yy=-1; yy<=1; yy++ )
-               {
-                  for( i32 xx=-1; xx<=1; xx++ )
-                  {
-                     i32 sx = x+xx,
-                         sy = y+yy;
-                     if( sx < 0 ) sx = desc->width-1;
-                     if( sy < 0 ) sy = desc->height-1;
-                     if( sx >= desc->width ) sx = 0;
-                     if( sy >= desc->height ) sy = 0;
-                     u32 ib = ((sy*desc->width)+sx)*4;
-                     if( pixels[ ib + 3 ] > 1 && pixels[ib+3]!=254 )
-                     {
-                        pixels[ ia+0 ] = pixels[ ib+0 ];
-                        pixels[ ia+1 ] = pixels[ ib+1 ];
-                        pixels[ ia+2 ] = pixels[ ib+2 ];
-                        pixels[ ia+3 ] = 1;
-                     }
-                  }
-               }
-            }
-         }
-      }
-   }
 }
 
 u32 vg_query_qoi_max_compressed_size( const struct qoi_desc *desc )