Data File: Light.mul
Index File: LightIdx.mul
You can compute the following values from the Extra field in the index file.
Sizes:
Dim width As Short = (extra BitAnd &HFFFF)
Dim height As Short = ((extra \ &H10000) BitAnd &HFFFF)
Data:
Dim additiveLightmap(width * height) As Byte (Signed)
For each pixel (loaded top to bottom, left to right), add the lightmap value for each R, G, and B.
As the value ranges from -31 to 31, you could easily apply a hue by using the color entry at Math.Abs( value ).
See Also:
- Index Files