Lights (Metroid Prime)

The Lights section in Metroid Prime areas defines several different types of lights: spot, point, directional, and custom. The exact behavior for each type of light is not entirely known, however they all use the same struct. The only difference is how they're utilized by the engine.

Format
The header for the light section is extremely simple and consists of the magic value. It's then followed by two arrays of lights, each preceded by a light count.

Light
Each light is a 0x41-byte struct that consists of the following data:

Light Types
The first value in each light is a type value. These are the possible values: