I have multiple guys sharing a single material. I want to give each of thes guys their own color as a per object parameter. I can not set it as a material uniform since they all use the same material.
The vertex shader seems to know the matrix for every object, but can I send more information to it? How would I handle that?
Or more important: I want to limit the number of materials because as I understand it, are costly performance wise. What would be cheaper: 20 different materials with 20 different textures or 200 guys with an override for their tribe color?