#include <cstddef>
#include "math/color.h"
#include "math/transform.h"
#include "math/vector3.h"
#include "os/mem.h"
#include "rnd/rndmat.h"
Go to the source code of this file.
◆ g_nSelectedGenMode
Texture coordinate generation mode of the stage PsMat::SetupUvXfm() last processed.
- Ghidra address:
- NTSC-U/C: 0x003b076c
- Ghidra address:
- PAL: 0x0042f604
◆ g_nSelectedFlat
Flat shading flag of the selected material.
- Ghidra address:
- NTSC-U/C: 0x003b0770
- Ghidra address:
- PAL: 0x0042f608
◆ g_nTextured
Non-zero while a stage texture is bound.
- Ghidra address:
- NTSC-U/C: 0x003b0774
- Ghidra address:
- PAL: 0x0042f60c
◆ g_nAlphaBlendEnabled
Non-zero once ALPHA_1 is a blending equation rather than an opaque copy.
- Ghidra address:
- NTSC-U/C: 0x003b0778
- Ghidra address:
- PAL: 0x0042f610
◆ g_nLightingEnabled
Lighting flag of the selected material, cleared when the stage texture is applied as a decal.
- Ghidra address:
- NTSC-U/C: 0x003b077c
- Ghidra address:
- PAL: 0x0042f614
◆ g_nReselectBlend
◆ g_colorScale
Scale from a vertex colour component to the GS range, 128 for a modulated texture and 255 otherwise, with alpha always 128.
- Ghidra address:
- NTSC-U/C: 0x0043c340
◆ g_uvXfm
Transform of the texture coordinates of the selected stage.
- Ghidra address:
- NTSC-U/C: 0x0043c350
◆ g_stageXfm
Basis rows of the stage transform a sphere-mapped stage applies before its sphere map.
- Ghidra address:
- NTSC-U/C: 0x0043c390