Ive been trying to avoid using textures in my project, Ive instead painted my model with separate materials, this is the final count of materials on one of my models.
this model containing these materials will be likely duplicated as the game is played, there will also be several other models with similar material counts, some models may have almost double.
is this too many?
will performance be affected?
if performance will be effected, what can i do instead?
What you could do is create a shader that assigns the diffuse color from vertex colors and then paint them in the 3d program with vertex coloring. Once you make the shader you right click it and click make material which will make a material from this vertex color shader.
Shaders can seem intimidating at first but they’re pretty easy once you start tooling with them. The setup above is very basic but would probably serve it’s purpose for your project.
If you set your scene assets to be static (not moving) this will reduce your draw calls to a single call which is very performant.
That said, having lots of materials these days isn’t the end of the world either for most machines if you have low poly assets and not too many crazy post processings or transparency effects.