Material

From owdev
Jump to: navigation, search

general 008 file layout.

 struct header {
   u64 keySource;	// 88 file. todo.
   u64 key3A;		// 3A file. todo.
   u64 keyDefinition;	// B3 file. to follow. shader input. textures+.
   u64 offset1;		// offset to table1_header.
   u64 offset2;		// direct offset to entries2.
   vec4 vec;		// scale maybe? w = 1.0
   u32 unk1;
   u32 unk2;
 }
 struct table1_header {
   u16 unk1;		// common 3
   u16 nr_entries1;
   u16 nr_entries2;
   u16 unk2;		// 1 or 0 if table 2 is present
   u32 unk3;
   u32 unk4;
 }

entries1 are u64 hash.

entries2 are

 struct void {
   u32 unk1;
   u32 unk2;
   u64 key88;
 }