Max Yankov
Max Yankov

Reputation: 13297

Setting colors of a submesh

How can I set colors of a submeshes vertices without re-generating it? Mesh class has methods for setting Triangles and Indices of a submesh, but nothing else.

Upvotes: 0

Views: 324

Answers (1)

user652038
user652038

Reputation:

You cannot set any vertex attributes for a submesh. You can only assign attributes to the entire mesh, and split it up into submeshes as you please. Consider this "regeneration" if you like; I don't recognize that term.

Upvotes: 1

Related Questions