ParticleSystemVertexStream.ColorPackedAsTwoFloats

Description

The color of each particle, packed in a special format to allow decoding on GPUs that do not support bit-packing operations.

To unpack the color, use the following code: `float4 color = float4(floor(colorPacked.x) / 255, frac(colorPacked.x) / 0.999, floor(colorPacked.y) / 255, frac(colorPacked.y) / 0.999);`.


Did you find this page useful? Please give it a rating: