I have a PointCloud
in which I am using to visualize some time-related data points. For each vertex in the PointCloud.Geometry, I'd like to assign an attribute which is an array of epoch times.
These epoch times are ints, an example would be:
epochTimes = [1432314839, 1432314840, 1432314841];
the custom attributes would look like this:
attributes = {
epochTimes: { type: 'f', value: [] }
};
Will 'f'
actually work?
I saw some interesting uniform types in the wiki, specifically uIntArray
, which is iv1
. I get an error when using that data type as an attribute. It may be reserved for only uniforms.
Is there any way I can assign an array of values as an attribute to a vertex?