resonance 1.0.1
Loading...
Searching...
No Matches
Rnd::PointLightRecord Struct Reference

One point light as the vertex lighting path consumes it. More...

#include <psenviron.h>

Collaboration diagram for Rnd::PointLightRecord:

Public Attributes

Vector3 mPosition
Vector3 mTransformedPosition
 mPosition in the space of the transform TransformLightRecords() or SelectLightForVertex() last took.
Color mAmbient
Color mDiffuse
int mCulled
 1 when TransformLightRecords() found the light out of reach of the bounding sphere.
unsigned mReserved44 [3]

Detailed Description

One point light as the vertex lighting path consumes it.

The record is not polymorphic and does not emit an RTTI descriptor. The name is inferred. PsEnviron::DrawShowing() fills mPosition, mAmbient, and mDiffuse.

Member Data Documentation

◆ mPosition

Vector3 Rnd::PointLightRecord::mPosition

< Translation row of the light's world transform, with Rnd::Light::mRange in the padding word.

◆ mTransformedPosition

Vector3 Rnd::PointLightRecord::mTransformedPosition

mPosition in the space of the transform TransformLightRecords() or SelectLightForVertex() last took.

The fourth word carries the range over unchanged, and the reach test reads it from here. +0x10

◆ mAmbient

Color Rnd::PointLightRecord::mAmbient

Copied from Rnd::Light::mAmbient.

◆ mDiffuse

Color Rnd::PointLightRecord::mDiffuse

Copied from Rnd::Light::mDiffuse.

◆ mCulled

int Rnd::PointLightRecord::mCulled

1 when TransformLightRecords() found the light out of reach of the bounding sphere.

+0x40

◆ mReserved44

unsigned Rnd::PointLightRecord::mReserved44[3]

Pads the record to 0x50 bytes. +0x44


The documentation for this struct was generated from the following file: