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