- Home /
Changing the reflection cubemap of all materials?
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?
Answer by Eno-Khaon · Aug 14, 2015 at 08:13 PM
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.
Your answer
Follow this Question
Related Questions
Different reflection cubemaps for different materials? 0 Answers
Cubemaps using the camera 0 Answers
Reflection probes and legacy shaders? 0 Answers
How to I get a reflection on the floor and on other objects ? 0 Answers
Cubemaps for flat surface/plane? 1 Answer