Browse Source

Removed unused texture metadata fields. Only the texture page and precalculated per-vertex UVs are needed to draw textured polygons.

unrollquadloop
Nico de Poel 3 years ago
parent
commit
97d23f0bc9
  1. 2
      ps1bsp.h
  2. BIN
      test.ps1bsp

2
ps1bsp.h

@ -43,8 +43,6 @@ typedef struct
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 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 unsigned short nextframe; // If non-zero, the texture is animated and this points to the next texture in the sequence
} ps1bsp_texture_t; } ps1bsp_texture_t;

BIN
test.ps1bsp

Loading…
Cancel
Save