Ember

Format v1

Dec 25th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. Textures:
  2. // Version control (4-bits 4/32 bits)
  3. 1-bits -> Version expansion
  4. 3-bits -> Version number
  5. // Texture information (12-bits, 16/32 bits)
  6. 4-bits -> Width //Width = power(2, Width + 1);
  7. 4-bits -> Height //Height = power(2, Height + 1);
  8. 1-bits -> Texture type (0 - 2D Texture | 1 - 3D Texture)
  9. 3-bits -> Number of layers //Layers = power(2, Layers + 1); if 3D texture, otherwise just increment one (greater than 1 being a texture array)
  10. // Pixel information (5-bits, 21/32 bits)
  11. 2-bits -> Number of components (Number = Number + 1) (1 - Red | 2 - Red/Blue | 3 - Red/Blue/Green | 4 - Red/Blue/Green/Alpha)
  12. 1-bits -> Type of component (0 - Integer, 1 - Float)
  13. 3-bits -> Bits Per Component //Bits = power(2, Bits + 1);
  14. // Mipmap information (5-bits, 26/32 bits)
  15. 1-bits -> Contains mip maps
  16. 4-bits -> Number of mip maps
  17. // Extra information (4-bits, 30/32 bits)
  18. 1-bits -> Indexed colour file
  19. 1-bits -> Number of bytes per index (incremented one)
  20. 1-bits -> ZIP compressed texture information
  21. 1-bits -> DXT compressed texture information
  22. // Padding (currently unsued bits) (2-bits, 32/32 bits)
Advertisement
Add Comment
Please, Sign In to add comment