#include <cstddef>
#include "math/frustum.h"
#include "math/transform.h"
#include "math/vector3.h"
#include "os/mem.h"
#include "rnd/rndcam.h"
Go to the source code of this file.
◆ g_invGuardBandScale
Reciprocal of the factor the view is widened by on each axis before clipping.
Each axis of the factor is the room left in the 4096-unit GS coordinate space around the screen rectangle, divided by the rectangle's extent with a 2 per cent margin. Primitives inside the widened view need no clipping, because the GS scissors them. The third component is 1.
- Ghidra address:
- NTSC-U/C: 0x0043c180
◆ g_particleProjectScale
The widened projection scale on each axis, with y negated, and two zero components.
- Ghidra address:
- NTSC-U/C: 0x0043c190
◆ g_drawFrustum
The view volume widened by the guard band, in world space.
- Ghidra address:
- NTSC-U/C: 0x0043c1a0
◆ g_viewProjectUnscaledXfm
World to clip transform without the guard band widening.
- Ghidra address:
- NTSC-U/C: 0x0043c200
◆ g_viewProjectXfm
World to clip transform, the projection widened by the guard band.
- Ghidra address:
- NTSC-U/C: 0x0043c240
◆ g_viewProjectBiasedXfm
g_viewProjectXfm with the depth of a perspective projection moved one depth unit nearer.
- Ghidra address:
- NTSC-U/C: 0x0043c280
◆ g_viewportUnscaledXfm
Clip to GS coordinate transform without the guard band scaling.
- Ghidra address:
- NTSC-U/C: 0x0043c2c0
◆ g_viewportXfm
Clip to GS coordinate transform, scaled by the guard band.
- Ghidra address:
- NTSC-U/C: 0x0043c300