Esempio n. 1
0
 private void TryExecuteCommandBuffer <T>(PostProcessingComponentCommandBuffer <T> component) where T : PostProcessingModel
 {
     if (component.active)
     {
         CommandBuffer commandBuffer = this.GetCommandBuffer <T>(component.GetCameraEvent(), component.GetName());
         commandBuffer.Clear();
         component.PopulateCommandBuffer(commandBuffer);
         return;
     }
     this.RemoveCommandBuffer <T>();
 }
 void TryExecuteCommandBuffer <T>(PostProcessingComponentCommandBuffer <T> component)
     where T : PostProcessingModel
 {
     if (component.active)
     {
         var cb = GetCommandBuffer <T>(component.GetCameraEvent(), component.GetName());
         cb.Clear();
         component.PopulateCommandBuffer(cb);
     }
     else
     {
         RemoveCommandBuffer <T>();
     }
 }