Exemplo n.º 1
0
 public override void Create()
 {
     this.EnsureMaterialInEditor();
     m_OpaqueColor.Init("_CameraOpaqueTexture");
     if (_material)
     {
         _pass = new CopyColorWithAlphaPass(RenderPassEvent.AfterRenderingSkybox, _material);
     }
 }
Exemplo n.º 2
0
 public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData)
 {
     if (renderingData.cameraData.renderType != CameraRenderType.Base)
     {
         return;
     }
     if (_pass == null)
     {
         if (_material)
         {
             _pass = new CopyColorWithAlphaPass(RenderPassEvent.AfterRenderingSkybox, _material);
         }
         else
         {
             return;
         }
     }
     _pass.Setup(renderer.cameraColorTarget, m_OpaqueColor, Downsampling._4xBox);
     renderer.EnqueuePass(_pass);
 }