示例#1
0
        void OnPostRender()
        {
            // do nothing when not in map view
            // - avoid weird situation when in some user installation MapIsEnabled is true in the space center
            if (!MapView.MapIsEnabled || HighLogic.LoadedScene == GameScenes.SPACECENTER)
            {
                return;
            }

            // commit all geometry
            Radiation.Render();

            // render all committed geometry
            LineRenderer.Render();
            ParticleRenderer.Render();
        }