resonance 1.0.1
Loading...
Searching...
No Matches
psenviron.h File Reference
#include <vector>
#include "math/color.h"
#include "math/vector3.h"
#include "rnd/environ.h"
Include dependency graph for psenviron.h:

Go to the source code of this file.

Classes

struct  Rnd::DirectionalLightRecord
 One directional light as the vertex lighting path consumes it. More...
struct  Rnd::PointLightRecord
 One point light as the vertex lighting path consumes it. More...
class  Rnd::PsEnviron
 Lighting and fog a subtree is drawn under, PlayStation 2. More...

Namespaces

namespace  Rnd
 The rendering engine.

Functions

int Rnd::TransformLightRecords (DirectionalLightRecord *&pDirectionalBegin, DirectionalLightRecord *&pDirectionalEnd, PointLightRecord *&pPointBegin, PointLightRecord *&pPointEnd, const float *pXfm, const Sphere *pSphere)
 Bring every light record into an object's space and cull the point lights against its bounds.
int Rnd::SelectLightForVertex (GifQuadword *pLight, GifQuadword *pAmbient, GifQuadword *pDiffuse, const float *pXfm, const Sphere *pSphere)
 Choose the one light the VU1 face program applies to an object and write its parameters.

Variables

PsEnviron * Rnd::g_pDefaultEnviron
 Environment the renderer falls back on when a scene selects none.
Light * Rnd::g_pDefaultLight
 Light the default environment applies when a scene supplies none.
float Rnd::g_flFogScale
 Scale a camera space depth is multiplied by to arrive at the byte range of the GS fog register.
float Rnd::g_flFogOffset
 Offset added after g_flFogScale has been applied.