Does Shader.SetGlobal property (each frame) has any negative impact on performance like a component look up has? (compared to doing it with directly referenced materials)
You can do your own tests, but I think all of that state has to be set every frame anyway, so setting it to something different shouldn’t take any longer.
OK, but what about when setting it global?
Probably negligible. Again, you can do tests if you’re worried about it.
1 Like