I'm doing circle animation with change of positions of colors in a SweepGradient and after creation of the shader I set a local matrix for it to rotate gradient.
So my question is:
Can I reuse my created SweepGradient object to change colors positions in it or I have to create it every time when I have a new state.
Second one:
And if I have to create it every single time then I suppose I must set a local matrix every single shader as well. Must I?