I’m trying to get particle colour into the GPU particle example. I’ve added
ParticleStructPos4Vel4
{
struct ParticlePos4Vel4
{
float4 Pos;
float4 Vel;
float4 pCol;
};
};
And updated the sim and draw shaders. But Draw is red as I can;t remember how to use stream I think?
I’m trying stream float4 pointColor ; Do I need to add it to a struct somewhere too? If so where?
Thanks