|
I have been writing a python script recently and would like to give my nParticles there own UV coordinates per particle. So as they cruise along in space I can change a texture map associated with them and use colorAtPoint, but not have to look up their UV coordinate every frame. As far as I can figure you can only give a PP attribute either a single Float value in an array or a vector value in an array. Is there a way to just pass a particle only 2 values for the vector and have it ignore the third when it returns the vector when it’s called? Are there more PP data types that I don’t know exist and that I need to be enlightened about? Or would it be easier just to make two single float array PP attributes and store the U separately from the V?
|
|
|