- Home /
Question by
tuf91497 · Mar 17, 2019 at 05:06 PM ·
scripting problemverticesmeshestriangles
Quick way to get touching triangles?
I have a mesh with unsorted vertices/triangles. I would like to send a color animation through the object that looks like a color "spreads" through the object by a few triangles at a time. Is it feasible to sort the triangle array somehow, or make a data structure for each triangle that stores the other triangles that it shares at least one vertex with?
Comment
$$anonymous$$aybe you should look into changing the Color with a vertex color shader. You don’t have to do the coding in the shader. You can loop through the vertices via C# and apply the color as you go.