Texture Definition

From owdev
Jump to: navigation, search

general 0B3 file layout

Types

 struct texture_t {
   u64 key;               // Texture
   u32 semantic_checksum; // shader input
   u32 flags;
 }

Format

 struct header {
   u64 offset1;        // shader (constants ?) mappings. definition todo.
   u64 offset2;        // ?
   u64 texture_offset; // offset to texture_t data plugs 
   u64 offset3;        // ?
   u32 unk1;           // ?
   u32 mapping_count;
   u8 texture_count;   // * texture_t
   u8 offset3_count;   // ?
   u8 unk4;            // ?
   u8 unk5;            // ?
   u32 unk6;           // ?
 }

If you seek to texture offset, you get a series of texture_t structures * texture_count