Example #1
0
 private void OnEnable()
 {
     this.m_camera            = base.GetComponent <Camera>();
     this.m_bloomClass        = new Bloom();
     this.m_combinationPass   = new CombinationPass();
     this.m_downsampling      = new Downsampling();
     this.m_virtualCamera     = new VirtualCamera();
     this.m_depthOfFieldClass = new DepthOfField();
     this.m_scionDebug        = new ScionDebug();
     this.m_colorGrading      = new ColorGrading();
     this.m_isFirstRender     = true;
     this.postProcessParams.Fill(this);
     if (!this.PlatformCompatibility())
     {
         base.enabled = false;
     }
 }
Example #2
0
        protected void OnEnable()
        {
            m_camera            = GetComponent <Camera>();
            m_cameraTransform   = m_camera.transform;
            m_bloomClass        = new Bloom();
            m_combinationPass   = new CombinationPass();
            m_downsampling      = new Downsampling();
            m_virtualCamera     = new VirtualCamera();
            m_depthOfFieldClass = new DepthOfField();
            m_scionDebug        = new ScionDebug();
            m_isFirstRender     = true;

            if (PlatformCompatibility() == false)
            {
                this.enabled = false;
            }

            InitializePostProcessParams();
        }
Example #3
0
 private void OnEnable()
 {
     this.m_camera = base.GetComponent<Camera>();
     this.m_bloomClass = new Bloom();
     this.m_combinationPass = new CombinationPass();
     this.m_downsampling = new Downsampling();
     this.m_virtualCamera = new VirtualCamera();
     this.m_depthOfFieldClass = new DepthOfField();
     this.m_scionDebug = new ScionDebug();
     this.m_colorGrading = new ColorGrading();
     this.m_isFirstRender = true;
     this.postProcessParams.Fill(this);
     if (!this.PlatformCompatibility())
     {
         base.enabled = false;
     }
 }
Example #4
0
        protected void OnEnable()
        {
            m_camera 				= GetComponent<Camera>();
            m_cameraTransform		= camera.transform;
            m_bloomClass			= new Bloom();
            m_lensFlareClass		= new ScionLensFlare();
            m_combinationPass 		= new CombinationPass();
            m_downsampling			= new Downsampling();
            m_virtualCamera 		= new VirtualCamera();
            m_depthOfFieldClass		= new DepthOfField();
            m_scionDebug			= new ScionDebug();
            m_isFirstRender			= true;

            if (PlatformCompatibility() == false) this.enabled = false;

            #if UNITY_EDITOR
            UnityEditor.Undo.undoRedoPerformed -= OnUndoCallback;
            UnityEditor.Undo.undoRedoPerformed += OnUndoCallback;
            #endif
        }