Modifying Vertex Colors during runtime in Godot

Hi there!

I was wondering if there is a way to edit the vertex colors of a 3D mesh during runtime (when the game is played) inside Godot.

The idea is to allow players to customise their characters by modifying the colors.

The characters would use vertex colors for their albedo (so no textures involved). I was thinking I could perhaps assign some placeholder vertex colors to the model, then read them inside godot and assign the proper colors to said faces based on the placeholder color. Sort of like an ID map in Substance Painter.

TLDR: Is there a way to change specific (so not the entire model) vertex colors of a mesh inside Godot during gameplay (and potentially save them) to allow for color customisation?

Probably, but it’s not a topic I’ve explored much. I imagine you could procgen something as a last resort if need be.

This might be useful for you:
https://www.reddit.com/r/godot/comments/1qd5cn8/tip_use_vertex_painting_to_upgrade_your/