Tag Info

New answers tagged


This question seems to be an X/Y problem. I think what you are really asking "how do I rotate a set of triangles?" You've settled on a very slow, very wrong solution to this problem. You should never be directly modifying vertex data on the CPU, unless you absolutely have to. I think your answer boils down to replacing: ...


Like above suggestion made... "Note that if your color change affects every vertex with one unique color, you may consider to pass to a shader a single color as a parameter, and do not modify vertex." ...if you do need to pass more than one color, I would suggest adding a texture parameter and then assigning the color in the effect file using something ...

Top 50 recent answers are included