SHBIN: Difference between revisions

Smea (talk | contribs)
boolean, integer and vec4 constants !
Smea (talk | contribs)
int vec4 constant format
Line 177: Line 177:
|}
|}


There are (at least) 3 types of constants : 0 is boolean, 1 is integer and 2 is float24 vec4.
There are (at least) 3 types of constants : 0 is boolean, 1 is integer vec4 and 2 is float24 vec4.


Corresponding constant entry formats :
Corresponding constant entry formats :
Line 198: Line 198:
|  0x1
|  0x1
|  Value (boolean)
|  Value (boolean)
|}
{| class="wikitable" border="1"
|-
!  Offset
!  Size
!  Description
|-
|  0x0
|  0x1
|  0x1
|-
|  0x2
|  0x1
|  Uniform integer vector ID
|-
|  0x4
|  0x1
|  x (u8)
|-
|  0x5
|  0x1
|  y (u8)
|-
|  0x6
|  0x1
|  z (s8 ?)
|-
|  0x7
|  0x1
|  w (u8)
|}
|}