MDB Format - DustStormPettigrew/LibLR1 GitHub Wiki

MDB — Material List

Named material definitions with colors, textures, and rendering flags.

Top-Level Block

Block ID Hex Type
Materials 0x27 Dict<string, MDB_Material>

MDB_Material Properties

Property Hex Type Description
Ambient Color 0x28 LRColor (RGBA) Ambient lighting color
Diffuse Color 0x29 LRColor (RGBA) Base diffuse color
Bool2A 0x2A flag Unknown boolean
Bool2B 0x2B flag Unknown boolean
Texture Name 0x2C string Reference to texture file
Bool2D 0x2D flag Unknown boolean
Bool2E 0x2E flag Unknown boolean
Bool38 0x38 flag Unknown boolean
Bool3A 0x3A flag Unknown boolean
Bool3F 0x3F flag Unknown boolean
Bool41 0x41 flag Unknown boolean
Bool45 0x45 flag Unknown boolean
Alpha 0x46 int (nullable) Alpha/transparency value
Bool4A 0x4A flag Unknown boolean

"Flag" properties are boolean — presence of the property byte means true; no data follows.

Key Files

File Purpose
LPIECELO.MDB Low-detail brick piece materials
LPIECEHI.MDB High-detail brick piece materials

Both must be edited together for consistent results.

Read/Write Support

Full round-trip.


Back to Home