void ApplyDistortionEffect(ref DistortionSettings parameters)
 {
     parameters.Edge                  = DistortionEdgeTrackBar.Value;
     parameters.Gain                  = DistortionGainTrackBar.Value;
     parameters.PostEQBandwidth       = DistortionBandwidthTrackBar.Value;
     parameters.PostEQCenterFrequency = DistortionFrequencyTrackBar.Value;
     parameters.PreLowpassCutoff      = DistortionLowPassTrackBar.Value;
 }
 void LoadDistortionEffect(DistortionSettings parameters)
 {
     SetTrackBar(DistortionEdgeTrackBar, parameters.Edge);
     SetTrackBar(DistortionGainTrackBar, parameters.Gain);
     SetTrackBar(DistortionBandwidthTrackBar, parameters.PostEQBandwidth);
     SetTrackBar(DistortionFrequencyTrackBar, parameters.PostEQCenterFrequency);
     SetTrackBar(DistortionLowPassTrackBar, parameters.PreLowpassCutoff);
 }
 public DistortionRenderPass(DistortionSettings settings)
 {
     renderPassEvent   = settings.renderPassEvent;
     targetTextureID   = Shader.PropertyToID(settings.textureID);
     tempRTID          = Shader.PropertyToID("_TempRT");
     isRenderingObject = settings.isRenderingObject;
     shaderTagID       = new ShaderTagId(settings.shaderTagID);
 }