[= ;294407]
Hi everyone,
I spoke with about the possibility of vertex painting at runtime. It does not seem this is going to be a possibility, here is what he said about it, for clarification:
“Vertex Colors are a component of the Vertex Information that is rendered at the time of the Vertex Pass. If you were to alter the vertex information at runtime then the whole sequence after the vertex pass would have to be re-rendered every frame that the vertex is changing color. This would yield extremely bad performance. The way around this is to use individual vertex colors to control the look of a mesh at runtime, so red yields a texture of the paint in place, green maybe has a dripping texture mask/motif that can be used to lerp into the red channel. And blue can be something entirely different as needed for what you are doing, but the runtime changes are not the vertex colors themselves but how the material is using the vertex color information which never changes.”
[/]
I made a test in the editor and that is not the case, in fact I can’t see any frame drop while painting vertex color and the shader I used is pretty complex. Works like a charme just that there isn’t anything that let me do it at runtime:

Even if performance would be bad for gameplay it would be still nice for stuff like customization, for players being able to paint their cars, characters etc.