Hello,
Speaking of performances, I wonder if it’s better to create many shaders doing few things or a single one doing many things.
/!\ My objects aren’t batched.
For example, is it better to have 2 surfaces shaders (1 with only a color property and 1 with only a texture property) or 1 shader with both properties (and then setting white if not wanting the color and no texture if not wanting texture) ?
Because maybe it has a cost for the GPU to change the shader, but if it’s not batched I wonder if the cost will still be there anyway ?
It’s quite hard to profile and it would be great if we could have a way to measure it.
Thanks