Browse Source

Textures are now showing up somewhat correctly!

Most of the actual changes are on the data conversion side.
unrollquadloop
Nico de Poel 3 years ago
parent
commit
5549e3f126
  1. BIN
      atlas-start.pcx
  2. 2
      memory.h
  3. BIN
      test.ps1bsp
  4. 2
      world.c

BIN
atlas-start.pcx

2
memory.h

@ -4,7 +4,7 @@
#define SCRATCHLEN 1024
extern u_char* const scratchpad; // Starting address of scratchpad memory, i.e. the 1kB of data cache usable as fast RAM
#define PRIMBUFLEN 65536 // TODO: reduce this to what's needed for a typical scene
#define PRIMBUFLEN 65536*2 // TODO: reduce this to what's needed for a typical scene
extern char *nextprim;
extern char *primbuf_bounds;

BIN
test.ps1bsp

2
world.c

@ -288,6 +288,8 @@ static INLINE short world_planeDot(const SVECTOR *dir, const ps1bsp_plane_t *pla
static void world_drawface(const world_t *world, const ps1bsp_face_t *face)
{
// TODO: do an early primitive buffer check here, so we can skip backface culling & vertex copying if it's already full
// Backface culling using the face's plane and center point
// This eliminates the need for normal clipping per polygon
SVECTOR cam_vec;

Loading…
Cancel
Save