Texture Definition

From owdev
Revision as of 18:35, 24 June 2016 by Episoder (talk | contribs)
Jump to: navigation, search

general 0B3 file layout

Types

 struct texture_t {
   u64 key04;          // 'file' reference/'name' of texture
   u32 smt_checksum;   // shader input
   u32 flags;
 }

Format

 struct header {
   u64 offset1;        // shader (constants ?) mappings. definition todo.
   u64 offset2;        // ?
   u64 textures;       // offset to texture_t data plugs 
   u64 offset3;        // ?
   u32 unk1;           // ?
   u32 nr_mappings;
   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 * textureCount