示例#1
0
 void normalShadingItem_BeforeChangingShadingMode(EnginePanel.ShadingModeChangedEventArgs e)
 {
     if ( (EditorManager.Scene != null &&  EditorManager.Scene.RendererNodeClass == IRendererNodeManager.RENDERERNODECLASS_DEFERRED) &&
        (EditorManager.ActiveView.ProjectionMode != VisionViewBase.ProjectionMode_e.Perspective))
       {
     //switch back to perspective because we do not support deferred + orthogonal
     EditorManager.ActiveView.ProjectionMode = VisionViewBase.ProjectionMode_e.Perspective;
       }
 }
示例#2
0
 void item_AfterChangingShadingMode(EnginePanel.ShadingModeChangedEventArgs e)
 {
     // After manually changing shading mode, revert possibly set flag that a shading mode should be restored
       // after a manual shading mode change
       _restorePerspectiveNormalShadingMode = false;
 }