Color a texture dynamically, best method?
I have a single 2D texture that I want the player to be able to "paint" with their fingers. The texture would be black and white, and painting on it would reveal its original color. (Target platform: iOS)
I'm trying to find out the best way to achieve the effect (and many methods come to mind):
A black and white sprite on top of the color sprite. Somehow "erase" pixels from the black and white version's texture, revealing the color sprite that is underneath. I read that SetPixel is slow?
Modify vertex color or alpha to achieve same.
Delete vertexes from the top sprite, revealing the color one underneath.
Somehow drawing a mask??
Thank you for your insight. The solution must be performant on mobile (iOS).
Your answer
Follow this Question
Related Questions
simple drawing script 0 Answers
Why can we add vertex alpha if there are no proper shaders? 1 Answer
Vertex Shader bug in Mobile with noise screen effects 0 Answers
Artifacts Shader Graph vertex colors 0 Answers
Vertex color shader with duplicates from a prefab causes a weird coloring issue. 0 Answers