MixedRealityToolkit-Unity
MixedRealityToolkit-Unity copied to clipboard
FadeScript not friendly when there are multiple cameras rendering the scene
https://github.com/Microsoft/MixedRealityToolkit-Unity/blob/9e9f36d99dfd91756c08694b159ed7f995045fb3/Assets/HoloToolkit/Utilities/Scripts/FadeScript.cs#L49
Since FadeScript is a SingleInstance, there can be only one.
In the event of an application that uses multiple cameras to render its scene (e.g. Galaxy Explorer), there would need to be a FadePlane in front of each camera on a layer that it renders. In that scenario, it would be better if FadeScript used sharedMaterial here instead of material.