LightTOC (Lighting Table of Contents)

A table of contents for lighting data, defining light instances and box lights.

Header

Offset Type Name Description
0x00 UInt16 (LE) Magic File magic.
0x02 UInt16 (LE) Version Version.
0x04 UInt32 LightArrayOffset Absolute offset to Light array.
0x08 UInt32 BoxArrayOffset Absolute offset to Box Light array.
0x0C UInt16 LightCount Number of lights.
0x0E UInt16 BoxCount Number of box lights.

Light Entry

Located at LightArrayOffset.

Type Name Description
Byte[16] GUID Light GUID.
Float[16] Matrix 4x4 Transform Matrix (Pos X=Index 12, Y=13, Z=14).
UInt8 Type RW Light Type.
UInt8 Flags RW Light Flags.
UInt8 InsideOut Inside/Outside flag.
UInt8 Padding Unused.
Float DiffAmbient Diffuse Ambient factor.
UInt8 R Red.
UInt8 G Green.
UInt8 B Blue.
UInt8 A Alpha.
Float Intensity Light intensity.
Float Radius Light radius.
Float FBRadius Full Bright Radius.
Float ConeAngle Cone Angle.
Float FBAngle Full Bright Angle.