mirror of
https://github.com/dpethes/rerogue.git
synced 2025-06-07 18:58:32 +02:00
43 lines
771 B
Plaintext
43 lines
771 B
Plaintext
4B material entry count MC
|
|
4B offset after material entries / offset to textures
|
|
MC * material entry (36B)
|
|
{
|
|
2B int type:
|
|
1=sky, trooper
|
|
2=mat
|
|
2B int 0, 1 (trooper, mat2)
|
|
4B float (misc)
|
|
4B float (1.0)
|
|
4B int zero
|
|
4B int 0x0A
|
|
16B name
|
|
}
|
|
4B int texcount Tc
|
|
TC * texture entry 52B
|
|
{
|
|
4B int pixel offset
|
|
28B zero
|
|
4B int palette offset
|
|
4B int texname offset
|
|
2B int width
|
|
2B int height
|
|
8B texture format {
|
|
1B 0x01
|
|
1B bits per pixel:
|
|
-0: 4bit
|
|
-1: 8bit
|
|
1B subtype:
|
|
-3 RGBA
|
|
-4 greyscale
|
|
-5 ? ov_rdir
|
|
1B 0, 0x40, 0x80
|
|
4B RGBA transparent color?
|
|
}
|
|
}
|
|
TC * texture data
|
|
{
|
|
16B texname = material name
|
|
xB RGB palette
|
|
xB pixels/samples
|
|
}
|