wavelength 1.0.0
Loading...
Searching...
No Matches
psenviron.h File Reference
#include "math/color.h"
#include "math/sphere.h"
#include "math/transform.h"
#include "math/vector3.h"
#include "rnd/rndenviron.h"
Include dependency graph for psenviron.h:

Go to the source code of this file.

Classes

class  PsEnviron
 Environment, PlayStation 2. More...

Variables

float g_fogScale
 Scale from a depth to the GS fog range, 255 over the fog distance, or 0 without fog.
float g_fogOffset
 Offset of the GS fog range, minus the fog end times g_fogScale, or 255 without fog.
int g_nFogEnabled
 Non-zero while the current environment has fog.
PsEnviron::LightProgram g_lightProgram
 The lighting microprogram of the current environment.
Color g_ambientColor
 Ambient colour of the current environment, with alpha 1.
Vector3 g_lightMatrix [3]
 The lights of the current environment as a matrix.
Color g_lightColors [3]
 Colour of each light of the current environment, with alpha 0.

Variable Documentation

◆ g_fogScale

float g_fogScale
extern

Scale from a depth to the GS fog range, 255 over the fog distance, or 0 without fog.

Ghidra address:
NTSC-U/C: 0x003b07e0
Ghidra address:
PAL: 0x0042f678

◆ g_fogOffset

float g_fogOffset
extern

Offset of the GS fog range, minus the fog end times g_fogScale, or 255 without fog.

Ghidra address:
NTSC-U/C: 0x003b07e4
Ghidra address:
PAL: 0x0042f67c

◆ g_nFogEnabled

int g_nFogEnabled
extern

Non-zero while the current environment has fog.

Ghidra address:
NTSC-U/C: 0x003b07e8
Ghidra address:
PAL: 0x0042f680

◆ g_lightProgram

PsEnviron::LightProgram g_lightProgram
extern

The lighting microprogram of the current environment.

Ghidra address:
NTSC-U/C: 0x003b07ec
Ghidra address:
PAL: 0x0042f684

◆ g_ambientColor

Color g_ambientColor
extern

Ambient colour of the current environment, with alpha 1.

Ghidra address:
NTSC-U/C: 0x0043c610

◆ g_lightMatrix

Vector3 g_lightMatrix[3]
extern

The lights of the current environment as a matrix.

For directional lights, column n of the first three components is the negated direction of light n. For a point light, the first row is the position, and the fourth components are -1 over the range, the range squared, and the range.

Ghidra address:
NTSC-U/C: 0x0043c620

◆ g_lightColors

Color g_lightColors[3]
extern

Colour of each light of the current environment, with alpha 0.

Unused rows are black.

Ghidra address:
NTSC-U/C: 0x0043c650