|
@@ -10,13 +10,13 @@ Godot has a simple serialization API based on Variant. It's used for
|
|
converting data types to an array of bytes efficiently. This API is used
|
|
converting data types to an array of bytes efficiently. This API is used
|
|
in the functions ``get_var`` and ``store_var`` of :ref:`class_File`
|
|
in the functions ``get_var`` and ``store_var`` of :ref:`class_File`
|
|
as well as the packet APIs for :ref:`class_PacketPeer`. This format
|
|
as well as the packet APIs for :ref:`class_PacketPeer`. This format
|
|
-is not used for binary scenes and resources.
|
|
|
|
|
|
+is *not* used for binary scenes and resources.
|
|
|
|
|
|
Packet specification
|
|
Packet specification
|
|
--------------------
|
|
--------------------
|
|
|
|
|
|
The packet is designed to be always padded to 4 bytes. All values are
|
|
The packet is designed to be always padded to 4 bytes. All values are
|
|
-little endian encoded. All packets have a 4 byte header representing an
|
|
|
|
|
|
+little-endian-encoded. All packets have a 4-byte header representing an
|
|
integer, specifying the type of data:
|
|
integer, specifying the type of data:
|
|
|
|
|
|
+--------+--------------------------+
|
|
+--------+--------------------------+
|
|
@@ -79,11 +79,12 @@ integer, specifying the type of data:
|
|
| 27 | max |
|
|
| 27 | max |
|
|
+--------+--------------------------+
|
|
+--------+--------------------------+
|
|
|
|
|
|
-Following this is the actual packet contents, which varies for each type
|
|
|
|
-of packet. Note that this assumes Godot is compiled with single precision
|
|
|
|
-floats. If instead doubles are used, the length of "Float" fields within
|
|
|
|
-data structures should be 8, and the offset should be (offset - 4) * 2 + 4.
|
|
|
|
-The "float" type itself is always double precision.
|
|
|
|
|
|
+Following this is the actual packet contents, which varies for each type of
|
|
|
|
+packet. Note that this assumes Godot is compiled with single-precision floats,
|
|
|
|
+which is the default. If Godot was compiled with double-precision floats, the
|
|
|
|
+length of "Float" fields within data structures should be 8, and the offset
|
|
|
|
+should be ``(offset - 4) * 2 + 4``. The "float" type itself always uses double
|
|
|
|
+precision.
|
|
|
|
|
|
0: null
|
|
0: null
|
|
~~~~~~~
|
|
~~~~~~~
|
|
@@ -103,7 +104,7 @@ The "float" type itself is always double precision.
|
|
+----------+-------+-----------+--------------------------+
|
|
+----------+-------+-----------+--------------------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==========+=======+===========+==========================+
|
|
+==========+=======+===========+==========================+
|
|
-| 4 | 8 | Integer | Signed, 64-bit Integer |
|
|
|
|
|
|
+| 4 | 8 | Integer | 64-bit signed integer |
|
|
+----------+-------+-----------+--------------------------+
|
|
+----------+-------+-----------+--------------------------+
|
|
|
|
|
|
3: :ref:`float<class_float>`
|
|
3: :ref:`float<class_float>`
|
|
@@ -121,9 +122,9 @@ The "float" type itself is always double precision.
|
|
+----------+-------+-----------+----------------------------+
|
|
+----------+-------+-----------+----------------------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==========+=======+===========+============================+
|
|
+==========+=======+===========+============================+
|
|
-| 4 | 4 | Integer | String Length (in Bytes) |
|
|
|
|
|
|
+| 4 | 4 | Integer | String length (in bytes) |
|
|
+----------+-------+-----------+----------------------------+
|
|
+----------+-------+-----------+----------------------------+
|
|
-| 8 | X | Bytes | UTF-8 Encoded String |
|
|
|
|
|
|
+| 8 | X | Bytes | UTF-8 encoded string |
|
|
+----------+-------+-----------+----------------------------+
|
|
+----------+-------+-----------+----------------------------+
|
|
|
|
|
|
This field is padded to 4 bytes.
|
|
This field is padded to 4 bytes.
|
|
@@ -134,9 +135,9 @@ This field is padded to 4 bytes.
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==========+=======+=========+================+
|
|
+==========+=======+=========+================+
|
|
-| 4 | 4 | Float | X Coordinate |
|
|
|
|
|
|
+| 4 | 4 | Float | X coordinate |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
-| 8 | 4 | Float | Y Coordinate |
|
|
|
|
|
|
+| 8 | 4 | Float | Y coordinate |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
|
|
|
|
6: :ref:`Rect2<class_rect2>`
|
|
6: :ref:`Rect2<class_rect2>`
|
|
@@ -145,13 +146,13 @@ This field is padded to 4 bytes.
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==========+=======+=========+================+
|
|
+==========+=======+=========+================+
|
|
-| 4 | 4 | Float | X Coordinate |
|
|
|
|
|
|
+| 4 | 4 | Float | X coordinate |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
-| 8 | 4 | Float | Y Coordinate |
|
|
|
|
|
|
+| 8 | 4 | Float | Y coordinate |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
-| 12 | 4 | Float | X Size |
|
|
|
|
|
|
+| 12 | 4 | Float | X size |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
-| 16 | 4 | Float | Y Size |
|
|
|
|
|
|
+| 16 | 4 | Float | Y size |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
|
|
|
|
7: :ref:`Vector3<class_vector3>`
|
|
7: :ref:`Vector3<class_vector3>`
|
|
@@ -160,11 +161,11 @@ This field is padded to 4 bytes.
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==========+=======+=========+================+
|
|
+==========+=======+=========+================+
|
|
-| 4 | 4 | Float | X Coordinate |
|
|
|
|
|
|
+| 4 | 4 | Float | X coordinate |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
-| 8 | 4 | Float | Y Coordinate |
|
|
|
|
|
|
+| 8 | 4 | Float | Y coordinate |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
-| 12 | 4 | Float | Z Coordinate |
|
|
|
|
|
|
+| 12 | 4 | Float | Z coordinate |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
|
|
|
|
8: :ref:`Transform2D<class_transform2d>`
|
|
8: :ref:`Transform2D<class_transform2d>`
|
|
@@ -222,17 +223,17 @@ This field is padded to 4 bytes.
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==========+=======+=========+================+
|
|
+==========+=======+=========+================+
|
|
-| 4 | 4 | Float | X Coordinate |
|
|
|
|
|
|
+| 4 | 4 | Float | X coordinate |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
-| 8 | 4 | Float | Y Coordinate |
|
|
|
|
|
|
+| 8 | 4 | Float | Y coordinate |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
-| 12 | 4 | Float | Z Coordinate |
|
|
|
|
|
|
+| 12 | 4 | Float | Z coordinate |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
-| 16 | 4 | Float | X Size |
|
|
|
|
|
|
+| 16 | 4 | Float | X size |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
-| 20 | 4 | Float | Y Size |
|
|
|
|
|
|
+| 20 | 4 | Float | Y size |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
-| 24 | 4 | Float | Z Size |
|
|
|
|
|
|
+| 24 | 4 | Float | Z size |
|
|
+----------+-------+---------+----------------+
|
|
+----------+-------+---------+----------------+
|
|
|
|
|
|
12: :ref:`Basis<class_basis>`
|
|
12: :ref:`Basis<class_basis>`
|
|
@@ -294,17 +295,17 @@ This field is padded to 4 bytes.
|
|
14: :ref:`Color<class_color>`
|
|
14: :ref:`Color<class_color>`
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
-+----------+-------+---------+----------------+
|
|
|
|
-| Offset | Len | Type | Description |
|
|
|
|
-+==========+=======+=========+================+
|
|
|
|
-| 4 | 4 | Float | Red (0..1) |
|
|
|
|
-+----------+-------+---------+----------------+
|
|
|
|
-| 8 | 4 | Float | Green (0..1) |
|
|
|
|
-+----------+-------+---------+----------------+
|
|
|
|
-| 12 | 4 | Float | Blue (0..1) |
|
|
|
|
-+----------+-------+---------+----------------+
|
|
|
|
-| 16 | 4 | Float | Alpha (0..1) |
|
|
|
|
-+----------+-------+---------+----------------+
|
|
|
|
|
|
++----------+-------+---------+--------------------------------------------------------------+
|
|
|
|
+| Offset | Len | Type | Description |
|
|
|
|
++==========+=======+=========+==============================================================+
|
|
|
|
+| 4 | 4 | Float | Red (typically 0..1, can be above 1 for overbright colors) |
|
|
|
|
++----------+-------+---------+--------------------------------------------------------------+
|
|
|
|
+| 8 | 4 | Float | Green (typically 0..1, can be above 1 for overbright colors) |
|
|
|
|
++----------+-------+---------+--------------------------------------------------------------+
|
|
|
|
+| 12 | 4 | Float | Blue (typically 0..1, can be above 1 for overbright colors) |
|
|
|
|
++----------+-------+---------+--------------------------------------------------------------+
|
|
|
|
+| 16 | 4 | Float | Alpha (0..1) |
|
|
|
|
++----------+-------+---------+--------------------------------------------------------------+
|
|
|
|
|
|
15: :ref:`NodePath<class_nodepath>`
|
|
15: :ref:`NodePath<class_nodepath>`
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
@@ -312,7 +313,7 @@ This field is padded to 4 bytes.
|
|
+----------+-------+-----------+-----------------------------------------------------------------------------------------+
|
|
+----------+-------+-----------+-----------------------------------------------------------------------------------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==========+=======+===========+=========================================================================================+
|
|
+==========+=======+===========+=========================================================================================+
|
|
-| 4 | 4 | Integer | String Length, or New Format (val&0x80000000!=0 and NameCount=val&0x7FFFFFFF) |
|
|
|
|
|
|
+| 4 | 4 | Integer | String length, or new format (val&0x80000000!=0 and NameCount=val&0x7FFFFFFF) |
|
|
+----------+-------+-----------+-----------------------------------------------------------------------------------------+
|
|
+----------+-------+-----------+-----------------------------------------------------------------------------------------+
|
|
|
|
|
|
For old format:
|
|
For old format:
|
|
@@ -321,7 +322,7 @@ For old format:
|
|
+----------+-------+---------+------------------------+
|
|
+----------+-------+---------+------------------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==========+=======+=========+========================+
|
|
+==========+=======+=========+========================+
|
|
-| 8 | X | Bytes | UTF-8 Encoded String |
|
|
|
|
|
|
+| 8 | X | Bytes | UTF-8 encoded string |
|
|
+----------+-------+---------+------------------------+
|
|
+----------+-------+---------+------------------------+
|
|
|
|
|
|
Padded to 4 bytes.
|
|
Padded to 4 bytes.
|
|
@@ -332,7 +333,7 @@ For new format:
|
|
+----------+-------+-----------+-------------------------------------+
|
|
+----------+-------+-----------+-------------------------------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==========+=======+===========+=====================================+
|
|
+==========+=======+===========+=====================================+
|
|
-| 4 | 4 | Integer | Sub-Name Count |
|
|
|
|
|
|
+| 4 | 4 | Integer | Sub-name count |
|
|
+----------+-------+-----------+-------------------------------------+
|
|
+----------+-------+-----------+-------------------------------------+
|
|
| 8 | 4 | Integer | Flags (absolute: val&1 != 0 ) |
|
|
| 8 | 4 | Integer | Flags (absolute: val&1 != 0 ) |
|
|
+----------+-------+-----------+-------------------------------------+
|
|
+----------+-------+-----------+-------------------------------------+
|
|
@@ -342,9 +343,9 @@ For each Name and Sub-Name
|
|
+----------+-------+-----------+------------------------+
|
|
+----------+-------+-----------+------------------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==========+=======+===========+========================+
|
|
+==========+=======+===========+========================+
|
|
-| X+0 | 4 | Integer | String Length |
|
|
|
|
|
|
+| X+0 | 4 | Integer | String length |
|
|
+----------+-------+-----------+------------------------+
|
|
+----------+-------+-----------+------------------------+
|
|
-| X+4 | X | Bytes | UTF-8 Encoded String |
|
|
|
|
|
|
+| X+4 | X | Bytes | UTF-8 encoded string |
|
|
+----------+-------+-----------+------------------------+
|
|
+----------+-------+-----------+------------------------+
|
|
|
|
|
|
Every name string is padded to 4 bytes.
|
|
Every name string is padded to 4 bytes.
|
|
@@ -385,7 +386,7 @@ other, using this same format.
|
|
+---------------+-------+-----------+------------------------+
|
|
+---------------+-------+-----------+------------------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+===============+=======+===========+========================+
|
|
+===============+=======+===========+========================+
|
|
-| 4 | 4 | Integer | Array Length (Bytes) |
|
|
|
|
|
|
+| 4 | 4 | Integer | Array length (Bytes) |
|
|
+---------------+-------+-----------+------------------------+
|
|
+---------------+-------+-----------+------------------------+
|
|
| 8..8+length | 1 | Byte | Byte (0..255) |
|
|
| 8..8+length | 1 | Byte | Byte (0..255) |
|
|
+---------------+-------+-----------+------------------------+
|
|
+---------------+-------+-----------+------------------------+
|
|
@@ -398,9 +399,9 @@ The array data is padded to 4 bytes.
|
|
+------------------+-------+-----------+---------------------------+
|
|
+------------------+-------+-----------+---------------------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==================+=======+===========+===========================+
|
|
+==================+=======+===========+===========================+
|
|
-| 4 | 4 | Integer | Array Length (Integers) |
|
|
|
|
|
|
+| 4 | 4 | Integer | Array length (Integers) |
|
|
+------------------+-------+-----------+---------------------------+
|
|
+------------------+-------+-----------+---------------------------+
|
|
-| 8..8+length\*4 | 4 | Integer | 32 Bits Signed Integer |
|
|
|
|
|
|
+| 8..8+length\*4 | 4 | Integer | 32-bit signed integer |
|
|
+------------------+-------+-----------+---------------------------+
|
|
+------------------+-------+-----------+---------------------------+
|
|
|
|
|
|
22: :ref:`PoolRealArray<class_poolrealarray>`
|
|
22: :ref:`PoolRealArray<class_poolrealarray>`
|
|
@@ -409,9 +410,9 @@ The array data is padded to 4 bytes.
|
|
+------------------+-------+-----------+---------------------------+
|
|
+------------------+-------+-----------+---------------------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==================+=======+===========+===========================+
|
|
+==================+=======+===========+===========================+
|
|
-| 4 | 4 |Integer | Array Length (Floats) |
|
|
|
|
|
|
+| 4 | 4 | Integer | Array length (Floats) |
|
|
+------------------+-------+-----------+---------------------------+
|
|
+------------------+-------+-----------+---------------------------+
|
|
-| 8..8+length\*4 | 4 |Integer | 32 Bits IEEE 754 Float |
|
|
|
|
|
|
+| 8..8+length\*4 | 4 | Integer | 32-bits IEEE 754 float |
|
|
+------------------+-------+-----------+---------------------------+
|
|
+------------------+-------+-----------+---------------------------+
|
|
|
|
|
|
23: :ref:`PoolStringArray<class_poolstringarray>`
|
|
23: :ref:`PoolStringArray<class_poolstringarray>`
|
|
@@ -420,7 +421,7 @@ The array data is padded to 4 bytes.
|
|
+----------+-------+-----------+--------------------------+
|
|
+----------+-------+-----------+--------------------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==========+=======+===========+==========================+
|
|
+==========+=======+===========+==========================+
|
|
-| 4 | 4 | Integer | Array Length (Strings) |
|
|
|
|
|
|
+| 4 | 4 | Integer | Array length (Strings) |
|
|
+----------+-------+-----------+--------------------------+
|
|
+----------+-------+-----------+--------------------------+
|
|
|
|
|
|
For each String:
|
|
For each String:
|
|
@@ -428,9 +429,9 @@ For each String:
|
|
+----------+-------+-----------+------------------------+
|
|
+----------+-------+-----------+------------------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+==========+=======+===========+========================+
|
|
+==========+=======+===========+========================+
|
|
-| X+0 | 4 | Integer | String Length |
|
|
|
|
|
|
+| X+0 | 4 | Integer | String length |
|
|
+----------+-------+-----------+------------------------+
|
|
+----------+-------+-----------+------------------------+
|
|
-| X+4 | X | Bytes | UTF-8 Encoded String |
|
|
|
|
|
|
+| X+4 | X | Bytes | UTF-8 encoded string |
|
|
+----------+-------+-----------+------------------------+
|
|
+----------+-------+-----------+------------------------+
|
|
|
|
|
|
Every string is padded to 4 bytes.
|
|
Every string is padded to 4 bytes.
|
|
@@ -441,11 +442,11 @@ Every string is padded to 4 bytes.
|
|
+-------------------+-------+-----------+----------------+
|
|
+-------------------+-------+-----------+----------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+===================+=======+===========+================+
|
|
+===================+=======+===========+================+
|
|
-| 4 | 4 | Integer | Array Length |
|
|
|
|
|
|
+| 4 | 4 | Integer | Array length |
|
|
+-------------------+-------+-----------+----------------+
|
|
+-------------------+-------+-----------+----------------+
|
|
-| 8..8+length\*8 | 4 | Float | X Coordinate |
|
|
|
|
|
|
+| 8..8+length\*8 | 4 | Float | X coordinate |
|
|
+-------------------+-------+-----------+----------------+
|
|
+-------------------+-------+-----------+----------------+
|
|
-| 8..12+length\*8 | 4 | Float | Y Coordinate |
|
|
|
|
|
|
+| 8..12+length\*8 | 4 | Float | Y coordinate |
|
|
+-------------------+-------+-----------+----------------+
|
|
+-------------------+-------+-----------+----------------+
|
|
|
|
|
|
25: :ref:`PoolVector3Array<class_poolvector3array>`
|
|
25: :ref:`PoolVector3Array<class_poolvector3array>`
|
|
@@ -454,28 +455,28 @@ Every string is padded to 4 bytes.
|
|
+--------------------+-------+-----------+----------------+
|
|
+--------------------+-------+-----------+----------------+
|
|
| Offset | Len | Type | Description |
|
|
| Offset | Len | Type | Description |
|
|
+====================+=======+===========+================+
|
|
+====================+=======+===========+================+
|
|
-| 4 | 4 | Integer | Array Length |
|
|
|
|
|
|
+| 4 | 4 | Integer | Array length |
|
|
+--------------------+-------+-----------+----------------+
|
|
+--------------------+-------+-----------+----------------+
|
|
-| 8..8+length\*12 | 4 | Float | X Coordinate |
|
|
|
|
|
|
+| 8..8+length\*12 | 4 | Float | X coordinate |
|
|
+--------------------+-------+-----------+----------------+
|
|
+--------------------+-------+-----------+----------------+
|
|
-| 8..12+length\*12 | 4 | Float | Y Coordinate |
|
|
|
|
|
|
+| 8..12+length\*12 | 4 | Float | Y coordinate |
|
|
+--------------------+-------+-----------+----------------+
|
|
+--------------------+-------+-----------+----------------+
|
|
-| 8..16+length\*12 | 4 | Float | Z Coordinate |
|
|
|
|
|
|
+| 8..16+length\*12 | 4 | Float | Z coordinate |
|
|
+--------------------+-------+-----------+----------------+
|
|
+--------------------+-------+-----------+----------------+
|
|
|
|
|
|
26: :ref:`PoolColorArray<class_poolcolorarray>`
|
|
26: :ref:`PoolColorArray<class_poolcolorarray>`
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
-+--------------------+-------+-----------+----------------+
|
|
|
|
-| Offset | Len | Type | Description |
|
|
|
|
-+====================+=======+===========+================+
|
|
|
|
-| 4 | 4 | Integer | Array Length |
|
|
|
|
-+--------------------+-------+-----------+----------------+
|
|
|
|
-| 8..8+length\*16 | 4 | Float | Red (0..1) |
|
|
|
|
-+--------------------+-------+-----------+----------------+
|
|
|
|
-| 8..12+length\*16 | 4 | Float | Green (0..1) |
|
|
|
|
-+--------------------+-------+-----------+----------------+
|
|
|
|
-| 8..16+length\*16 | 4 | Float | Blue (0..1) |
|
|
|
|
-+--------------------+-------+-----------+----------------+
|
|
|
|
-| 8..20+length\*16 | 4 | Float | Alpha (0..1) |
|
|
|
|
-+--------------------+-------+-----------+----------------+
|
|
|
|
|
|
++--------------------+-------+-----------+--------------------------------------------------------------+
|
|
|
|
+| Offset | Len | Type | Description |
|
|
|
|
++====================+=======+===========+==============================================================+
|
|
|
|
+| 4 | 4 | Integer | Array length |
|
|
|
|
++--------------------+-------+-----------+--------------------------------------------------------------+
|
|
|
|
+| 8..8+length\*16 | 4 | Float | Red (typically 0..1, can be above 1 for overbright colors) |
|
|
|
|
++--------------------+-------+-----------+--------------------------------------------------------------+
|
|
|
|
+| 8..12+length\*16 | 4 | Float | Green (typically 0..1, can be above 1 for overbright colors) |
|
|
|
|
++--------------------+-------+-----------+--------------------------------------------------------------+
|
|
|
|
+| 8..16+length\*16 | 4 | Float | Blue (typically 0..1, can be above 1 for overbright colors) |
|
|
|
|
++--------------------+-------+-----------+--------------------------------------------------------------+
|
|
|
|
+| 8..20+length\*16 | 4 | Float | Alpha (0..1) |
|
|
|
|
++--------------------+-------+-----------+--------------------------------------------------------------+
|