Exemplo n.º 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;
     }
 }
Exemplo n.º 2
0
        private void PrepareColorGrading(ColorGradingParameters colorGradingParams)
        {
            if (colorGradingParams.colorGradingMode == ColorGradingMode.Off)
            {
                return;
            }

            m_combinationMat.SetTexture("_ColorGradingLUT1", colorGradingParams.colorGradingTex1);
            ColorGrading.UploadColorGradingParams(m_combinationMat, colorGradingParams.colorGradingTex1.height);

            if (colorGradingParams.colorGradingMode == ColorGradingMode.On)
            {
                return;
            }

            m_combinationMat.SetTexture("_ColorGradingLUT2", colorGradingParams.colorGradingTex2);
            m_combinationMat.SetFloat("_ColorGradingBlendFactor", colorGradingParams.colorGradingBlendFactor);
        }
Exemplo n.º 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;
     }
 }