mirror of
https://github.com/jkdansereau/goldeneye-pc-port.git
synced 2026-10-24 00:02:45 +02:00
The M-37 scratch note (D176a-sky-rootcause.md) was never committed. Re-derive the complete format from src/game/sky.c and include/PR/gbi.h: - skyRenderTri/skyRenderFull emit a verbatim N64 RDP triangle command (2-word header + 3 edge-slope pairs + 16-word shade block + 16-word texture block) chopped into gImmp1(G_RDPHALF_1/_CONT) pairs, terminated by G_RDPHALF_2. GE's RSP ucode DMAs it straight to the RDP. - sub_GAME_7F097388 already yields complete screen-space verts; the projection math is endian-clean and is not the defect. Two implementation paths documented with a recommendation (Path B: an #ifdef PORT emit swap in sky.c, first; Path A: an RDP-tri decoder in gfx_pc.cpp, as the long-term answer). Word layout cross-checked against gbi.h packing conventions.