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; } }
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); }
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; } }