コード例 #1
0
ファイル: Engine.cs プロジェクト: zajc3w/Kerbalism
  void OnPostRender()
  {
    // do nothing if DB isn't ready for whatever reason
    if (!DB.Ready()) return;

    // do nothing when not in map view
    if (!MapView.MapIsEnabled) return;

    // commit all geometry
    Signal.render();
    Radiation.render();

    // render all committed geometry
    LineRenderer.render();
    ParticleRenderer.render();
  }
コード例 #2
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
            Signal.render();
            Radiation.render();

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