/// <summary> /// Raises the post render event. /// </summary> // UnityAndroid: // The FBO will be current in OnPostRender. // The FBO is NOT current in OnRenderImage, so don't try to put this work there. void OnPostRender() { if (CameraController.WireMode == true) { GL.wireframe = false; } #if UNITY_ANDROID // Allow custom code to render before we kick off the // plugin event for this camera. if (OnCustomPostRender != null) { OnCustomPostRender(); } #endif #if (UNITY_ANDROID && !UNITY_EDITOR) // Moved vignette back to plugin for special overlay handling CameraController.CameraEndFrame((RenderEventType)Camera.current.depth); #endif }