示例#1
0
        private void OnRenderImage(RenderTexture source, RenderTexture destination)
        {
            if (workflow == Workflow.Selective && (UnityEngine.Rendering.GraphicsSettings.renderPipelineAsset || PipelineProperties.xrEnabled))
            {
                Graphics.Blit(source, destination);
                return;
            }

            _source.renderTexture      = source;
            _destination.renderTexture = destination;
            SettingsLegacy settings = this;

            Legacy.CameraDataLegacy cameraData = renderingCamera;
            _effect.Build(_source, _destination, settings, null, cameraData, renderingCamera, false);

            Graphics.Blit(source, destination, _effect.renderMaterialNoGeometry, _effect.currentRenderIndex);
            _effect.AfterCompositeCleanup();
        }
        private void OnRenderImage(RenderTexture source, RenderTexture destination)
        {
            if (workflow == Workflow.Selective && PipelineProperties.xrEnabled)
            {
                Graphics.Blit(source, destination);
                return;
            }

            _source.renderTexture      = source;
            _destination.renderTexture = destination;

            SettingsLegacy settings = this;

            _effect.Build(_source, _destination, settings, null, renderingCamera);

            Graphics.Blit(source, destination, _effect.renderMaterialNoGeometry, _effect.currentRenderIndex);
            _effect.AfterCompositeCleanup();
        }