From 97d23f0bc98703e48b6eb8d2e99f120ecc00ec67 Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Tue, 31 Jan 2023 12:22:29 +0100 Subject: [PATCH] Removed unused texture metadata fields. Only the texture page and precalculated per-vertex UVs are needed to draw textured polygons. --- ps1bsp.h | 2 -- test.ps1bsp | Bin 447459 -> 447287 bytes 2 files changed, 2 deletions(-) diff --git a/ps1bsp.h b/ps1bsp.h index 1f926ce..922ffc9 100755 --- a/ps1bsp.h +++ b/ps1bsp.h @@ -43,8 +43,6 @@ typedef struct typedef struct { - unsigned char w, h; // These may be necessary for scaling UVs, especially since we use a mix of mip0 and mip1 textures - unsigned char uoffs, voffs; // Texture coordinate offset within the texture page unsigned short tpage; // Texture page in PS1 VRAM (precalculated when generating the texture atlas) unsigned short nextframe; // If non-zero, the texture is animated and this points to the next texture in the sequence } ps1bsp_texture_t; diff --git a/test.ps1bsp b/test.ps1bsp index f1082fc06c5ced888042dad109c56ff297ad66a7..976566e3881256fed75334368a29d965e67b9c1a 100755 GIT binary patch delta 297 zcmZ9Fp%MX66o$XMc6UTU+hUAI5HtkOpa>fTQBchWL8Y;%6f>*sGuV-M1cDhJK;sd>h9lv)rDecU2+r#`19%%tL%xp<4_q9c|+p)S=c@t;<&M>-cDRx&M`skS?jU#)%i bo$b}XV!U_ZC^6&2D2|X5T)|5d<5!O_!*4n_ delta 470 zcmXv~t4_o~6g{)kHY*TU;1)3Z)e1c7Z(Jd-LgNRl;(wLBE? z2N*y-wfbI}@+%%xq37!Xw@F)6E zVDTf~SBdv6>H96w?E%AX1$O|fomME;0lKL0xeqWST*_=_&Wt|SnW@2*28c7akz0mK zL0ZMyF}1gv^Eu}=$Ly0IJfiP{4=G3Owbpa3U6`vcd5*fU`kiZlaZxe|H!%>1BNMs) zPPt}fCaqameXbF88JPNHLDa`5F4B2&Xkto-_N0B&?P=}vfK@(#^Oqw35sZ4i{LGqj RYa%8BD<}lz(wb`L;~(X4U-|$5