Exemplo n.º 1
0
        public virtual void SetOutputSettings(PrefabCaptureNode.OutputMode mode, Camera targetCamera)
        {
            UpdateSceneComponents();

            var pipeline = RenderPipelineManager.currentPipeline;

            if (pipeline != null) // SRP in use, so we'll use an SRP specific implementation
            {
#if MIXTURE_HDRP
                if (pipeline.GetType() == typeof(HDRenderPipeline))
                {
                    bufferPass.SetOutputSettings(mode, targetCamera);
                }
#endif
            }
            else
            {
                // TODO: legacy support with replacement shaders
            }
        }
Exemplo n.º 2
0
 internal void SetOutputSettings(PrefabCaptureNode.OutputMode mode, Camera targetCamera)
 {
     this.mode         = mode;
     this.targetCamera = targetCamera;
 }