wavelength 1.0.0
Loading...
Searching...
No Matches
pscam.h File Reference
#include <cstddef>
#include "math/frustum.h"
#include "math/transform.h"
#include "math/vector3.h"
#include "os/mem.h"
#include "rnd/rndcam.h"
Include dependency graph for pscam.h:

Go to the source code of this file.

Classes

class  PsCam
 Camera, PlayStation 2. More...

Variables

Vector3 g_invGuardBandScale
 Reciprocal of the factor the view is widened by on each axis before clipping.
Vector3 g_particleProjectScale
 The widened projection scale on each axis, with y negated, and two zero components.
Frustum g_drawFrustum
 The view volume widened by the guard band, in world space.
Transform g_viewProjectUnscaledXfm
 World to clip transform without the guard band widening.
Transform g_viewProjectXfm
 World to clip transform, the projection widened by the guard band.
Transform g_viewProjectBiasedXfm
 g_viewProjectXfm with the depth of a perspective projection moved one depth unit nearer.
Transform g_viewportUnscaledXfm
 Clip to GS coordinate transform without the guard band scaling.
Transform g_viewportXfm
 Clip to GS coordinate transform, scaled by the guard band.

Variable Documentation

◆ g_invGuardBandScale

Vector3 g_invGuardBandScale
extern

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

Vector3 g_particleProjectScale
extern

The widened projection scale on each axis, with y negated, and two zero components.

Ghidra address:
NTSC-U/C: 0x0043c190

◆ g_drawFrustum

Frustum g_drawFrustum
extern

The view volume widened by the guard band, in world space.

Ghidra address:
NTSC-U/C: 0x0043c1a0

◆ g_viewProjectUnscaledXfm

Transform g_viewProjectUnscaledXfm
extern

World to clip transform without the guard band widening.

Ghidra address:
NTSC-U/C: 0x0043c200

◆ g_viewProjectXfm

Transform g_viewProjectXfm
extern

World to clip transform, the projection widened by the guard band.

Ghidra address:
NTSC-U/C: 0x0043c240

◆ g_viewProjectBiasedXfm

Transform g_viewProjectBiasedXfm
extern

g_viewProjectXfm with the depth of a perspective projection moved one depth unit nearer.

Ghidra address:
NTSC-U/C: 0x0043c280

◆ g_viewportUnscaledXfm

Transform g_viewportUnscaledXfm
extern

Clip to GS coordinate transform without the guard band scaling.

Ghidra address:
NTSC-U/C: 0x0043c2c0

◆ g_viewportXfm

Transform g_viewportXfm
extern

Clip to GS coordinate transform, scaled by the guard band.

Ghidra address:
NTSC-U/C: 0x0043c300