Thank you so much @Deltakosh , I watched the video, it is great, But the problem is I must use Lerp because each cube has a specific grade for color, I try to use SPS but I couldn’t get the cube and I want to know is it possible to use Lerp in SPS?
I’m not avalaible for now (in the next weeks). In your PG, you’ve got an error (please, check the console) because you don’t loop over each particle in the function initParticle that you implemented.
initParticles() is a custom function that the user can implement for his own needs in order to set all the particles, or some of them only, in their initial state… or to do anything else. It’s not called automatically by the SPS and doesn’t iterate over all the particles.