Vectors are expressed as a sequence of float values separated by a single space character. If there are fewer values than the minimum (2 for this data type), then the default is used.
Rotation is a special case of vec3 and is used when to specify spatial rotations. It is represented in HTML as a vec3 with the rotation performed as follows:
- Object is rotated about its X-axis
- Object is rotated about its (new) Y-Axis
- Object is rotated about its (new) Z-Axis
All rotations are applied individually and about the object’s current coordinate axis.