16-10-2020, 09:37 AM
(15-10-2020, 09:36 PM)harut Wrote: I've managed to create the bulges, but I can't change the particle color like in your Gif
I'm setting the color from here
Code:_rope.solver.colors[solverIndex] = color;
but it dose not have any effect on rope color.
What material do you use, I'm using RedRope + ObiRopeExtrudedRenderer.
You must use a shader that uses vertex colors when rendering, of course. Unity's Standard shader does not. You can find lots of per-vertex colored shaders online, and there's also one included at Obi/Resources/ObiMaterials/StandardVertexColors.shader which mimics the Standard shader.