Lights (Metroid Prime): Difference between revisions
Jump to navigation
Jump to search
imported>Antidote (Created page with "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 n...") |
imported>Antidote No edit summary |
||
Line 8: | Line 8: | ||
The header for the light section is extremely simple and consists of the magic, <code>0xBABEDEAD</code>, followed by two arrays of lights, preceded by their count. | The header for the light section is extremely simple and consists of the magic, <code>0xBABEDEAD</code>, followed by two arrays of lights, preceded by their count. | ||
===Light=== | ===Light=== | ||
Lights | Lights are a 0x41 byte long struct and consists of the following: | ||
{|class="wikitable" | {|class="wikitable" | ||
!Type | !Type |
Revision as of 08:18, 1 February 2015
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.
This file format needs a lot of research Past power, nothing is really known. |
Format
The header for the light section is extremely simple and consists of the magic, 0xBABEDEAD
, followed by two arrays of lights, preceded by their count.
Light
Lights are a 0x41 byte long struct and consists of the following:
Type | Description |
---|---|
long | Light Type |
float3 | Light Color |
float3 | Position |
float3 | Direction? |
float | Power; NOT intensity, intensity is calculated using this value. |
float | Angle? |
float | Unknown |
float | Unknown |
byte | Unknown |
float | Unknown |
long | Unknown |
float | Unknown |