CLYT format: Difference between revisions

m Fix small math error in Vector2 size.
Edit the picture documentation to properly show inheritance from PAN1.
Line 244: Line 244:


== pic1 (Picture 1) ==
== pic1 (Picture 1) ==
'''pic1''' represents a picture that can be displayed in a layout. The previous 0x4C bytes are all defined by '''pan1'''.
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
Line 251: Line 253:
!  Description
!  Description
|-
|-
|0x00||0x4||String||Signature (pic1)
|0x4C||0x4||RGBA8||Top left vertex color
|-
|-
|0x04||0x4||UInt32||Section Size
|0x50||0x4||RGBA8||Top right vertex color
|-
|-
|0x08||0x4||RGBA8||Top left vertex color
|0x54||0x4||RGBA8||Bottom left vertex color
|-
|-
|0x0C||0x4||RGBA8||Top right vertex color
|0x58||0x4||RGBA8||Bottom right vertex color
|-
|-
|0x10||0x4||RGBA8||Bottom left vertex color
|0x5C||0x2||UInt16||Material ID
|-
|-
|0x14||0x4||RGBA8||Bottom right vertex color
|0x5E||0x2||UInt16||Nr texture coordinates = N
|-
|0x18||0x2||UInt16||Material ID
|-
|0x1A||0x2||UInt16||Nr texture coordinates = N
|-
|-
! colspan="4"|Texture coordinates entry
! colspan="4"|Texture coordinates entry
|-
|-
|0x1C + N*0x20||0x8||Vector2||Top left vertex texture coordinate
|0x60 + N*0x20||0x8||Vector2||Top left vertex texture coordinate
|-
|-
|0x24 + N*0x20||0x8||Vector2||Top right vertex texture coordinate
|0x60 + N*0x20||0x8||Vector2||Top right vertex texture coordinate
|-
|-
|0x2C + N*0x20||0x8||Vector2||Bottom left vertex texture coordinate
|0x60 + N*0x20||0x8||Vector2||Bottom left vertex texture coordinate
|-
|-
|0x34 + N*0x20||0x8||Vector2||Bottom right vertex texture coordinate
|0x60 + N*0x20||0x8||Vector2||Bottom right vertex texture coordinate
|}
|}