26
edits
RalfGerlich (talk | contribs) |
RalfGerlich (talk | contribs) |
||
Line 326: | Line 326: | ||
=== Color List === | === Color List === | ||
The Color List object contains a list of color definitions to be referenced by other geometry primitives. | |||
The properties of a Color List object are ignored. | |||
Each element of a Color List object is a list of color definitions. | |||
Each of the colors gets a unique index, starting with 0 for the first color found in the file and incrementing by 1 for each further color. | |||
{| border="1" | |||
|- | |||
! Byte offset | |||
! Type | |||
! Description | |||
|- | |||
| align="right"| 0 | |||
| unsigned int | |||
| number of bytes in this element | |||
|- | |||
| align="right"| 4 | |||
| color definitions | |||
| color definition list | |||
|} | |||
Each color definition is a 4-tuple of single precision floating point values: | |||
{| border="1" | |||
|- | |||
! Byte offset | |||
! Type | |||
! Description | |||
|- | |||
| align="right"| 0 | |||
| float | |||
| red part | |||
|- | |||
| align="right"| 4 | |||
| float | |||
| green part | |||
|- | |||
| align="right"| 8 | |||
| float | |||
| blue part | |||
|- | |||
| align="right"| 12 | |||
| float | |||
| alpha part | |||
|} | |||
The number of coordinates in an element is therefore the number of bytes in the element divided by 16. | |||
=== Points === | === Points === |
edits