Apply a discrete color array to a point cloud.
positions
[x0, y0, z0, ...]
colors
[r0, g0, b0, a0, ...]
Float32Array RGBA matching colors length, padded with gray for missing entries.
Apply a discrete color array to a point cloud.
Arguments
positions— Float32Array[x0, y0, z0, ...]colors— Float32Array[r0, g0, b0, a0, ...](0.0-1.0), one color per pointReturns
Float32Array RGBA matching colors length, padded with gray for missing entries.