I am creating an open world racing game for mobile. Most of the shaders being used are from the legacy and mobile section, and all vehicles use some form of the legacy reflective family shaders. However, those shaders don’t appear to respond to reflection probes, and cannot use the default scene reflection source, either. How can I dynamically change the reflection cubemap of a very large number of legacy reflective shaders?
Based on a quick look at the built-in shader variable list, there doesn’t appear to be a global cubemap to change on the fly. However, that doesn’t mean it’s not an option at all, but it involves creating your own shaders.
When making your own shaders, however, you can define (descriptions given a few posts down) and then freely set your own global shader variables, including textures.