Particle Shader CUSTOM - storing more than 4 pieces of data?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MathiasStrohkirch

I’m wondering if there is any way I can store more than 4 pieces of custom data between frames of a particle shader. In my shader, each particle is given a random xyz position and xyz rotation. I want these to be remembered because I want to sometimes revert the position and rotation to these in process(). This is 6 pieces of data that I will need to store. I am aware of CUSTOM which persists between frames, but this is a vec4, so it can’t store 6 pieces of data.

Is there some way I can store 6 pieces (or an arbitrary amount) of data between frames?

I’m very new to particle shaders and everything 3D so any ideas or a way to do this better would be great! Thank you