Beispiel #1
0
        /////////////////////////////////////////////////////////////////////////////////
        // render related

        public void InvokeStereoRenderers(VRRenderEventDetector detector)
        {
            // render registored stereo cameras
            for (int renderIter = 0; renderIter < stereoRendererList.Count; renderIter++)
            {
                StereoRenderer stereoRenderer = stereoRendererList[renderIter];

                if (stereoRenderer.shouldRender)
                {
                    stereoRenderer.Render(detector);
                }
            }
        }
Beispiel #2
0
 public void RemoveFromManager(StereoRenderer stereoRenderer)
 {
     stereoRendererList.Remove(stereoRenderer);
 }
Beispiel #3
0
        /////////////////////////////////////////////////////////////////////////////////
        // callbacks

        public void AddToManager(StereoRenderer stereoRenderer)
        {
            stereoRendererList.Add(stereoRenderer);
        }