Free Support Forum -

How can I get vertex color from TriMesh

Im trying to get each vertex color data from TriMesh based on imported obj.

Can you give me some example of how to get vertex color data?



Please check the two code snippets in our reply in your other post. In the first code snippet, you can use a [Semantic] attribute to bind a field to vertex color. In the second code snippet, you can add a vertex color in the vertex declaration.