Texture Definition

From owdev
Revision as of 00:42, 21 June 2016 by Yukimono (talk | contribs)
Jump to: navigation, search

0B3 files are in the following format:

Types

 struct texture_t {
   uint64 key;   // key of texture
   uint32 semantic_checksum; // shader input
   uint32 flags;
 }

Format

 struct header {
   uint64 offset1;        // ?
   uint64 offset2;        // ?
   uint64 texture_offset; // offset to texture_t data
   uint64 offset3;        // ?
   uint32 unk1;           // ?
   uint16 unk2;           // ?
   uint16 unk3;           // ?
   uint8  texture_count;  // * texture_t
   uint8  offset3_count;  // ?
   uint16 unk4;           // ? might be uint8 + uint8
   uint32 unk5;           // ?
 }

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